An ultrasonic sensor transmits short pulses at high frequency intervals.
These pulses propagate in the air at the speed of sound. When they encounter an object, they are reflected and return as an echo to the sensor. The latter then calculates the distance separating it from the target on the basis of the time elapsed between the emission of the signal and the reception of the echo.