adding code for demo photo resistor