PIR Senesor / Motion Sensor using Arduino Code /* PIR SENSOR / MOTION SENSOR https://electronicassist.blogspot.in/ ARJUN ARANGIL 9444868542 */ int ledPin = 13; // choose the pin for the LED int inputPin = 2; // choose the input pin (for PIR sensor) int leda = 12; // choose the pin for the LED int ledb = 11; // choose the pin for the LED int pirState = LOW; // we start, assuming no motion detected int val = 0; // variable for reading the pin status void setup() { pinMode(ledPin, OUTPUT); ...