Specify range of measurement, resolution of measurement, and physical arrangement needed to get any useful answers. Some options to research: digital or analog output proximity sensors, various types of photoelectric sensors, sophisticated laser displacement sensors, analog LVDT touch probes.
TygerDawg
Blue Technik LLC
Virtuoso Robotics Engineering