This popular ultrasonic distance sensor provides stable and accurate distance measurements from 2cm to 450cm. It has a focus of less than 15 degrees and an accuracy of about 2mm.
Ultrasonic distance detector
Range distance: 2-500cm
Component attach: PCB or breadboard