https://diyprojectslab.com/raspberry-pi-with-ultrasonic-sensor/
Raspberry Pi With Ultrasonic Sensor Tutorial