An ultrasonic sensor is an electronic device that consists of a transmitter and a receiver used to send and receive ultrasonic signals, respectively. It emits ultrasonic sound waves and measures the distance of a target object by reflecting the sound waves in the form of an electrical signal.