Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings by using passive infrared detectors