A simple modification of the basic VL53L0X example to add audio indication of range.
Here’s a quick demo..
The VL53L0X is a very small Time-of-Flight (ToF) ranging sensor. It can be used for measurement up to 2m (in long distance mode).
It adds a tone output at a frequency that is inversely proportional to the distance.
In VL53L0X default mode, this results in a frequency range of about 1000Hz (about half a meter away) to 1480Hz (close in). The actual range can be adjusted by changing the calculation that converts distance into frequency.
I’ve actually used a Maker UNO board for this demo, as it has the piezo buzzer built-in: