Small changes in the sound are analyzed to determine nearby objects, their size, and distance.
Radar is like sonar, the only difference being that sonar uses sound to detect objects, while a radar uses radio waves.