The LDR / Photo-resistor is basically a very simple light sensor that changes its resistance with light, lowering with more light.
To wire your LDR to Arduino, connect the following pins:
- Ldr Pin 1 –> Arduino 5V
- Ldr Pin 2 –> Arduino Pin A0
- Ldr Pin 2 –> Arduino Ground via Resistor 10K