Detecting a light or making a switch using Photoresistor interface with Arduino.
Electronic Components Required
Arduino UNO/MEGA/PRO
1x LED
1x 220k Ohm Resistor
1x 10k Resistor
1x LDR(Photo resistor)
[crayon-679f3fcfe7662049866840/]
Download the source code here | 14Core Light Detection
Starter #9 Light Detection with (LDR) Light-Dependent Resistor with Arduino