The GP2Y0A21
Sharp distance sensor is a great way to add obstacle avoidance or motion sensing to your robot or any other project. With a detection range of
4″ to 32″ (10 cm to 80 cm) and an analog voltage indicating the distance, this sensor is very easy to use.