Light sensor not working
the light sensor of my Zenfone 8 is not working.
I noticed it because when I have adaptive brigthness ON, as soon as I lock and unlock the device, the screen gets very dim (the slider is still up, and as soon as I move it, the brightness kicks up again).
Later I tried some apps that let you read your sensors measurements. I saw that every app can read every sensor, but the light sensor, which does not give any value at all (some app shows 0 or -1, because I guess that's how the variable is initialized in the app).
Is it a hardware problem? Is it common for just the light sensor to break?
Can it be a kernel/driver/firmware/software problem? I noticed this issue after a few weeks I updated to Android 12 in July (waited long because I was not sure about the big android 12 UI...) and subsequently did all the following updates. Is there any way to detect if the problem is software with something lower level than app, like adb, and maybe solve it without sending the phone to warranty?