This is yet another ultrasonic range finder project using Arduino. We have done several similar projects in the past.

It allows us to control a buzzer based on the distance detected by an HC-SR04 sensor, making it sound with a frequency proportional to the distance from an obstacle.