Ultrasonic-Distance-Sensor---HC-SR04.Ultrasonic Sensor Ultrasonic Sensors measure the distance to the target by measuring the time between the emission and reception. An optical sensor has a transmitter and receiver, whereas an ultrasonic sensor uses a single ultrasonic element for both emission and reception.