The use of motion sensor HC-SR501 in automatic lighting and alarm systems.
On the basis of the motion sensor HC-SR501 and the sound module JQ6500 do automatic lighting and also burglar alarm. Infrared volumetric sensor HC-SR501 is equipped with additional transistor key. Output relay controls the lights and also can be connected to the sound module JQ6500. This module recorded the dog barking. When approaching the area of the sensor turns the light on and a dog barking. This art project can be applied to protect houses, villas, etc.
More info in the video https://youtu.be/YP2BZ8lvCuc