The HC-SR04 measures distances with precision down to 1 centimeter or below. We can use these measurements to control other devices, such as a servo for robot obstacle avoidance.
We'll be using the NewPing library, which is hosted on BitBucket: https://bitbucket.org/teckel12/arduino-new-ping/downloads/