Let's learn how to read a photoresistor, a light-sensitive type of variable resistor, using Arduino's Analog Input. It's also called an LDR (light-dependent resistor).
So far you've already learned to control LEDs with Arduino's analog output, and to read a potentiometer, which is another type of variable resistor, so we'll build on those skills in this lesson. Remember that Arduino's analog inputs (pins marked A0-A6) can detect a gradually changing electrical signal, and translates that signal into a number between 0 and 1023.