How to Use a PIR Sensor with Arduino for Motion Detection

1 views Mar 30, 2025

How to Use a PIR Sensor with Arduino for Motion Detection A PIR (Passive Infrared) sensor is commonly used for motion detection in security systems, automatic lighting, and smart home applications. It detects infrared radiation emitted by humans or animals and triggers an action when motion is detected. In this guide, we will learn how to connect a PIR sensor to an Arduino and use it for motion detection. Components Required: Arduino board (Uno, Mega, or Nano) PIR sensor (HC-SR501) LED or buzzer (optional) Jumper wires Breadboard Wiring the PIR Sensor with Arduino: Connect the VCC pin of the PIR sensor to the 5V pin on the Arduino. Connect the GND pin of the PIR sensor to the GND on the Arduino. Connect the OUT pin of the PIR sensor to Digital Pin 2 on the Arduino.

#Computer Science
  # Consumer Electronics
  # Home Alarm & Security Systems
  # Home Automation
  # Home Safety & Security
  # Other