jehankandtsadun_j
Published © Apache-2.0

Arduino With Motion Sensor

Arduino With Motion Sensor - PIR Sensor passive infrared sensor (PIR sensor)

IntermediateFull instructions provided184
Arduino With Motion Sensor

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
×1
PIR Motion Sensor (generic)
PIR Motion Sensor (generic)
×1
LED (generic)
LED (generic)
×1
Resistor 220 ohm
Resistor 220 ohm
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE
Arduino Web Editor
Arduino Web Editor

Story

Read more

Schematics

Arduino with PIR Sensor

Arduino with PIR Sensor

Code

Arduino with PIR Sensor

C/C++
Arduino with PIR Sensor
//...........JEHANKANDY..................
//.........Motion Sensor.................
//..........PIR Sensor...................

void setup() {
pinMode(2,INPUT);
pinMode(3,OUTPUT);

}

void loop() {
 int val = digitalRead(2);
  if(val==1){
    digitalWrite(3,HIGH);
  }
  else{
    digitalWrite(3,LOW);
  
   }
}

//............Thank you..............
//....Develop By : JEHAN KANDY.......

Credits

jehankandt
21 projects • 8 followers
Contact
sadun_j
0 projects • 1 follower
Contact

Comments

Please log in or sign up to comment.