This raspberry pi tutorial shows how to use a PIR sensor on the raspberry pi model B+. It explains how to wire the sensor into a breadboard using the raspberry pi’s GPIO pins. It then shows how to use python code to toggle a green LED on and off based on detected motion.

#raspberry-pi

How to Use a PIR Motion Sensor with Raspberry Pi
1.60 GEEK