Learn to use the HC-SR501 PIR Motion Sensor by itself, with an Arduino and a Raspberry Pi. Everything you need to know about the HC-SR501