A device for controlling lighting, especially inside the passenger
compartments of vehicles, including at least one light source and at
least one sensor which influences the light source and which detects at
least the movement of a body within the active range of the sensor. A
control unit, which is used to control the light source according to a
sensor signal provided by a sensor, is associated with the light source.
Control unit, which are controlled by the control unit, track the light
from the at least one light source according to a sensor signal
corresponding to the position of the body. The invention also relates to
a method for controlling the device.