Photoresistor calibration fixes