The laser diffuse reflective sensor with background suppression of the O-40E series reliably detects the correct position of a shaft on a workpiece carrier system. Thanks to its broad scan width range of 30 to 350 mm, it is possible to position the sensor both near the shaft and away from it. The switch point can be adjusted easily, precisely and protected from vibrations by means of a 10-turn potentiometer.