PIR SensorAnd of course, some sort of stereo or portable speaker in the 1/8in jack so you can hear it!
- Red -> 5V
- Yellow Data -> input 24
- Black -> Ground
- One wire to ground, the other to input 23, with a 10k pull-up resistor to 3v3
- Green connected to output 18 through a 220ohm resistor, will correspond to motion detection
- Red connected to output 25 through a 220ohm resistor, will correspond to an open magnetic door switch
That's it! Now on to the code...