Description
A CDS photocell (or Light Dependent Resistor / LDR) is a resistor where the resistance changes based on the amount of light. These make great basic light sensors as they are extremely easy to use. As the amount of light increases the resistance of the sensor decreases and vice versa. Resistance ranges from ~500 Ohms in direct sunlight to ~5K Ohms in a lit room, and in excess of 500K Ohms in the dark.
To use the photocell you will need a single 10K ohm resistor. The resistor is connected between your analog pin and ground while the photocell is connected between the analog pin and your power. The photocell is symmetrical so there is no need to worry about hooking it up backwards!

