Simplified version of Photo-Resistor  demo