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 (x1) 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 , and a circuit configured to generate a voltage for supplying the control means from said constant current, characterised by a first switch (S1) and a second switch (S2) 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 (x3) and a second output connector (x4) that are configured to electrically connect the first lighting means and a pair of the first output connector (x3) and a third output connector (x5) that are configured to electrically connect the second lighting means , the second switch (S2) is configured to switch the first lighting means by short-circuiting the first output connector (x3) and the second output connector (x4), 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 (x1) with the third output connector (x5) based on the first control signal, and the circuit is connected to the input connector (x1) and is connected to the first output connector (x3). 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 (x1) 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 , and a circuit configured to generate a voltage for supplying the control means from said constant current, characterised by a first switch (S1) and a second switch (S2) 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 (x3) and a second output connector (x4) that are configured to electrically connect the first lighting means and a pair of the first output connector (x3) and a third output connector (x5) that are configured to electrically connect the second lighting means , the second switch (S2) is configured to switch the first lighting means by short-circuiting the first output connector (x3) and the second output connector (x4), 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 (x1) with the third output connector (x5) based on the first control signal, and the circuit is connected to the input connector (x1) and is connected to the first output connector (x3). <EOS>