This project involves creating a simple door status monitor using an Arduino Uno, an IR sensor, and an LED. The purpose of this project is to detect whether a door is open or closed and display the ...
pinMode(IR_Pin, INPUT); // make the IR pin an INPUT: pinMode(GLED_Pin, OUTPUT); // make the LED pin an OUTPUT: pinMode(RLED_Pin, OUTPUT); // make the LED pin an input: ...