The centrepiece of the system is an optoelectronic sensor. The basic configuration is intentionally limited to few components by combining a sensor unit with a warning unit, in order to guarantee a high level of reliability, longevity and simple installation. Based on each specific application, another sensor or signalling unit can be connected to a second room or a second entrance. In addition, ventilators and suction devices can be directly controlled via a switching unit.