Measure distance making use of an ultrasonic range sensor