A sensor device is provided for generating an electrical output signal in
dependence on the position of a light source in relation to the sensor
device. The sensor device has a three-dimensional switch carrier with
several adjacent faces oriented in different directions, on which faces
at least two sensors are arranged. On the two sides of a central face,
there is arranged in each case a face, with an infrared light (IR)
photodetector in each case, oriented at an angle to the central face,
whereby the faces on which the IR photodetectors are arranged are not
directly adjacent to one another.