I received a vl53l1x laser distance sensor in the mail a few weeks ago, so let's see what it can do. And compare it to the common ultrasonic distance sensor.
Here are some of the tutorials I used to supply code for this video:
https://learn.adafruit.com/adafruit-vl53l1x/arduino
https://core-electronics.com.au/guides/piicodev-distance-sensor-vl53l1x-raspberry-pi-pico-guide/
And this is where I bought the vl53l1x laser distance sensor, if you're interested in picking one up to play with : https://pileofstuff.ca/r/phx9c
My tip jar: https://www.patreon.com/pileofstuff
My other tip jar (channel membership) : https://www.youtube.com/channel/UCRiFz3gNKE3VysarZ7nmqIA/join
Buy me a coffee (or a beer): https://ko-fi.com/pileofstuff
If you are OK with me getting a commission on your purchases, feel free to use my affiliate links:
Ebay: https://ebay.to/33IF7PA
Banggood: http://pileofstuff.ca/r/9ajsf
Some other links to products may be affiliate links
https://odysee.com/@pileofstuff #ElectronicsCreators
This isn't the only way to do it. It's probably not the best way to do it. But it's how I did it.