//PIR SENSOR - MOTION DETECTION
int pir=2;
int value;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(pir, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
value=digitalRead(pir);
Serial.print("PIR value: ");
Serial.println(value);
}