Add the following snippet to your HTML:
Controlling the direction of rotation of a DC motor using a photoresistor.
Read up about this project on
Comments