linked PWM LED and photoregistor