RPi function to read HC-SR04 sonar rangefinder