measurement distance of 20 meters

Hi every body…

I’m looking for a way to measure a distance in a range from 0 to 20 meters… there are differents modules : IR, ultrasonic, laser etc…

I saw that we can make one with IR sensor but it’s not enough powerful : Using basic Infrared sensor for distance measurement? (click on subtitle for the subtitle) - YouTube

Have you got ideas?

Thank you a lot


for that type of distance check LIDAR-Lite (up to 40m, ~2.5cm precision)

Ultrasound seems possible, too.

Note that you can't go to zero. There's a minimum distance.

A length of string and a reel?