Anti-Theft Infrared Sensor With Arduino

About: Let's be the miscellaneous Channel!


Here's a circuit for PIR sensor.

I have created an Alarm sound that beeps 6 times when a motion is detected.

Connect the Circuit as shown in the Image.

PIR sensor reads the Input signal.

Buzzer writes the output signal. (Buzzing noise)

Video Link provided here :


  • Arduino UNO
  • Jumper wires
  • Bread board
  • PIR sensor
  • Electronic Buzzer.
  • Power supply. +5V

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Programming for Arduino

Here's the block of code :

int inSignal = 2; //input signal
int outSignal = 3; //output signal

void setup() {


pinMode(inSignal, INPUT); //PIR is connected

pinMode(outSignal, OUTPUT); //Buzzer is connected


void loop() {

// read the input pin: int buttonState = digitalRead(inSignal);

// print out the state of the button:



for(int i = 0; i<6; i++){//looping on/off sound 6 times

digitalWrite(outSignal, HIGH);


digitalWrite(outSignal, LOW);


Serial.println("Motion Detected!");




Serial.println("No Motion Detected");

digitalWrite(outSignal, LOW);



Be the First to Share


    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest