/*
This is the code for the project,
All in One Home Automation project using ESP RainMaker made using ESP32 (Version 2)
This code was written by Sachin Soni for techiesms YouTube channel
This code is provided free for project purpose and fair use only.
Do mail us if you want to use it commercially
techiesms@gmail.com
Copyrighted © by techiesms
Watch out it's complete tutorial on our YouTube channel
https://www.YouTube.com/techiesms
*/
#include "RMaker.h"
#include "WiFi.h"
#include "WiFiProv.h"
#include < IRremote.h > // https://github.com/Arduino-IRremote/Arduino-IRremote (3.6.1)
#include < DHT.h > // https://github.com/adafruit/DHT-sensor-library (1.4.3)
#include < SimpleTimer.h > // https://github.com/kiryanenko/SimpleTimer (1.0.0)
#include < AceButton.h > // https://github.com/bxparks/AceButton (1.9.2)
#include < Preferences.h >
Preferences pref;
// Relay State
bool toggleState_1 = LOW; //Define integer to remember the toggle state for relay 1
bool toggleState_2 = LOW; //Define integer to remember the toggle state for relay 2
bool toggleState_3 = LOW; //Define integer to remember the toggle state for relay 3