A simple light sensor...in the place of the potentiometer you should put a photoresistor...the potentiometer simulate the photoresistor.
If you change (1%) its value means that there is bright (LUCE)...BUIO means dark...so ther isn't bright and the photoresistor is like an open switch.