d=ToF (time of flight)* C (speed of sound) * 1/2

Proximity measurement can be carried out by means of ToF ( Time of Flight), the time between the emitted ultrasound and the reflected ultrasound to calculate the distance between the ultrasonic transducer and the object.