Python Library for Ultrasonic Module HC-SR04 Distance Measuring Transducer
Find the details about connecting the sensor and installing the library can be found in the following. Example code snippets with explanation are also in the article.
At the command prompt in the Raspberry Pi Terminal, execute one of the following:
pip3 install Bluetin_Echo
pip3 install --upgrade Bluetin_Echo