We are going to start by wiring up our photoresistor and testing it with some software. Once we have tested it, we can then hook it up to the motor shield and use the values it returns to turn the motor on and off.
Our first task is to set up our circuit. This process is very similar to when you created the thermistor circuit in Chapter 3, Our First Project–A Basic Thermometer.
You'll need your resistor, photoresistor, three wires (black, red, and yellow are used in the explanation), and the breadboard.