The HC-SR04 ultrasonic sensor is a very affordable proximity/distance sensor that has been used mainly for object avoidance in various robotics projects. It essentially gives your Arduino eyes/spatial awareness and can prevent your robot crashing against a wall. It has also been used in turret applications, water level sensing, and even as a parking sensor.