HC-SR04 Ultrasonic Principle

Distance = (Time × Speed of Sound) / 2