Based on the amount of time it takes for the sound wave to travel from the sensor to an object and back, we can estimate how far the object is as long as we know how fast the sound is traveling.
Distance = Speed of Sound × Time
In this activity, you will use an acoustic distance sensor (HCSR04) to measure distance. For a further challenge, try the Advanced section to calculate the speed of sound in air for yourself.