Please go through the below link to get the complete understanding of HC-SR04 module
https://www.modmypi.com/blog/hc-sr04-ultrasonic-range-sensor-on-the-raspberry-pi
Link for raspberry pi HC-SR04 library module
https://pypi.python.org/pypi/hcsr04sensor/1.2.0
Advertisements