Let's measure distances with an ultrasonic rangefinder (distance sensor) and Arduino's digital input. We'll connect up a circuit using a breadboard and use some simple Arduino code to control a single LED.
You may have already learned to read a pushbutton and PIR motion sensor with Arduino's digital input, and we'll build on those skills in this lesson.