Need Help with Piezo Buzzer and Ultrasonic Sensor code

If I wanted to mount this sensor to a servo and use it for obstacle detection for a robot, then in your opinion what type of sensitivity would I need so the robot has time to properly maneuver?

Just have to experiment.

Good luck with your project.