How does an ultrasonic sensor work?
The sensor has a ceramic transducer that vibrates when electrical energy is applied to it. The vibrations compress and expand air molecules in waves from the sensor face to a target object. A transducer both transmits and receives sound. The ultrasonic sensor will measure distance by emitting a sound wave and then “listening” for a set period of time, allowing for the return echo of the sound wave bouncing off the target, before retransmitting.