Using a Light-Dependent Resistor With a Raspberry Pi

An Light-Dependent Resistor – LDR (sometimes called a photocell) is a special type of resistor. When light hits the LDR, its resistance is very low, but when it’s in the dark its resistance is very high. By placing a capacitor in series with an LDR, the capacitor will charge at