Light sensor PWM