A sensor device comprising a control means including a sensor and configured to generate a first control signal depending on a detection, wherein the sensor is a presence detector, a twilight sensor or detector for detecting color temperature, an input connector configured to electrically connect an operating device for driving at least a first lighting means and a second lighting means, output connectors (x3, x4, x5) configured to electrically connect the operating device, the first lighting means and the second lighting means for outputting a constant current that is generated by the operating device for driving the lighting means (3a, 3b), and a circuit configured to generate a voltage for supplying the control means from said constant current, characterised by a first switch and a second switch configured to switch on and off the first lighting means and the second lighting means based on the first control signal; wherein the sensor device comprises a pair of a first output connector and a second output connector that are configured to electrically connect the first lighting means and a pair of the first output connector and a third output connector that are configured to electrically connect the second lighting means, the second switch is configured to switch the first lighting means by short-circuiting the first output connector and the second output connector, to which the operating device is connectable, based on the first control signal, the first switch (Si) is configured to switch the second lighting means by electrically connecting the input connectors with the third output connector based on the first control signal, and the circuit is connected to the input connector and is connected to the first output connector. a control means including a sensor and configured to generate a first control signal depending on a detection, wherein the sensor is a presence detector, a twilight sensor or detector for detecting color temperature, an input connector configured to electrically connect an operating device for driving at least a first lighting means and a second lighting means, output connectors (x3, x4, x5) configured to electrically connect the operating device, the first lighting means and the second lighting means for outputting a constant current that is generated by the operating device for driving the lighting means (3a, 3b), and a circuit configured to generate a voltage for supplying the control means from said constant current, characterised by a first switch and a second switch configured to switch on and off the first lighting means and the second lighting means based on the first control signal; wherein the sensor device comprises a pair of a first output connector and a second output connector that are configured to electrically connect the first lighting means and a pair of the first output connector and a third output connector that are configured to electrically connect the second lighting means, the second switch is configured to switch the first lighting means by short-circuiting the first output connector and the second output connector, to which the operating device is connectable, based on the first control signal, the first switch (Si) is configured to switch the second lighting means by electrically connecting the input connectors with the third output connector based on the first control signal, and the circuit is connected to the input connector and is connected to the first output connector.