Automation using IR Remote
* Code * #include <IRremote.h> #define irPin 9 IRrecv irrecv(irPin); decode_results results; #define r1 13 int relay1 = LOW; #define r2 12 int relay2 = LOW; #define r3 11 int relay3 = LOW; #define r4 10 int relay4 = LOW; #define r5 8 int relay5 = LOW; void setup() { irrecv.enableIRIn(); pinMode(r1, OUTPUT); pinMode(r2, OUTPUT); pinMode(r3, OUTPUT); pinMode(r4, OUTPUT); pinMode(r5, OUTPUT); } void loop() { if (irrecv.decode(&results)) { switch (results.value) { case 16580863: digitalWrite(r1,0); ...