Measure distance with a Sharp infrared sensor based on optical triangulation, as a practical alternative to ultrasonic sensing.