A rduino boards are a popular choice for DIY electronics, but it's not always clear how to get started with building projects ...
Just about every “getting started with microcontrollers” kit, Arduino or otherwise, includes an ultrasonic distance sensor ...
THIS CODE IS OBSOLETE * It needs to be updated to be compatible with changes to the ESP32 standard libraries. Also, if fine granularity control is required, it needs to use long int arithmetic instead ...