Measure distance to an object by using a laser-based Time-of-Flight sensor. These sensors have a range of up to 2 meters and are pretty accurate.
You could use these for all sorts of things like measuring waterlevel in a container (without getting the sensor wet).
The sensor works by shining a laser onto an object, and timing how long it takes the light to be reflected back to the sensor.
⚡️Other videos in this series:
• ESP32 + Arduino
(Everything you need to know about programming the ESP32 by using the Arduino Framework)
🌍 Social
Twitter: / savjee
Facebook: / savjee
Blog: https://savjee.be
❤️ Become a Simply Explained member: / @simplyexplained
💌 Newsletter: http://newsletter.savjee.be
(no more than once a month)