There are many types of distance sensors.
Tell us about your project, and the constraints on the sensor.