This video shows how a distance sensor works using a basic LED. When an object gets too close to the sensor the LED turns on. This is great for beginners interested in sensors. Technology today such as self-driving cars use this technology.
SOURCE CODE: https://github.com/afazio1/arduino-co...