//Now in programming, first we need to include the libraries
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
#define BLYNK_TEMPLATE_ID "TMPL60v7KQcpH"
#define BLYNK_TEMPLATE_NAME "Home Automation plus"
#define BLYNK_AUTH_TOKEN "Your Auth Token"
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[ ] = "Your Auth Token";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[ ] = "TMPL60v7KQcpH";
char pass[ ] = "Home Automation plus";
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass, "blynk.cloud", 80);
}
//In the loop function include Blynk.run() command.
void loop()
{
Blynk.run();
}