We will continue our exploration of sensors by modifying our original Hello LED code. In this project, we will combine a distance sensor with our PIR sensor, and flash an LED based on the values of these sensors. This circuit will not only tell us that someone is approaching, but will also give us an indication of how close they are.
We will cover the following in this section:
- Configuring a distance sensor
- Taking Hello LED to another level