simple photocell (photoresister) example using ADC for input and PWM for output