If your Light Sensor isn’t working properly, try recalibrating it, or setting the calibration back to the defaults. I recently mis-calibrated my light sensor, and spent about 10 minutes trying to figure out why it wasn’t working. It only registered a range of about 10. So everything was coming out wrong on the readings.I figured it out finally. I had messed up the calibration.
Once I reset the light sensor calibration, everything started working as expected again.