The SRf05 ultrasonic range sensor detects objects in it,s path and can be used to calculate the range to the object. It is sensitive enough to detect any object around 3 cm to 3 m range.
This module can be used in two different modes:
1. Output pin - single micro-controller pin
2. Dual pin - given a 10uS trigger to the trigger pin and calculating the echo time.