In the case of distance measurement, the sensor is ready to use immediately and gives the distance from the sensor to the object. The measured value can, for example, be used for the precise positioning of objects or for controlling a system. Optionally, a digital output can be parameterized.