Notifications You must be signed in to change notification settings Welcome to the Arduino Motion Detection with PIR Sensor project repository! This repository ...
int led = 13; // the pin that the LED is atteched to int sensor = 2; // the pin that the sensor is atteched to int state = LOW; // by default, no motion detected int val = 0; // variable to store the ...