.
New Article: ESP32 online Web Remote Watch: Video
Replying to: Spark
Comment:

Ultrasonic distance sensor HC-SR04 is used in this project.

Every sensor has a different interface. You need to see the data sheet of the sensor to figure out the necessary details. But you can easily find the sample Python scripts for commonly available sensors on internet.