You can also control the light manually using the switch as shown in the picture ... Upon detecting motion, the output pin (linked to the base of the BC557 PNP transistor) of the IR proximity sensor ...