Since the propagation speed of ultrasonic waves differs depending on the medium, ultrasonic waves are either transmitted through or reflected by different media. This property of reflection is used mainly to detect the presence or state of objects, and for distance detection.