Added code to calibrate light sensor