Enough of blinking LEDs. Now, lets move on to something more interesting, like conditionally turning on an LED. The aim of the tutorial is to familiarise you with the process of using almost any sensor with Arduino.
Let us first get the Arduino to do something, and then understand why we did, what.
Step 1: Hook up the following circuit. You will need: