Light curtains for measuring tasks detect and measure objects with infrared light according to the through-beam mode. The emitter and receiver are enclosed in separate housings and are available with different measuring field heights and beam distances. If the light beams are interrupted during a protrusion or height check, the sensor is switched.