#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
#define BLYNK_TEMPLATE_ID "TMPxxxxxx"
#define BLYNK_TEMPLATE_NAME "Device"
#define BLYNK_AUTH_TOKEN "YourAuthToken"
char ssid[] = "YourNetworkName";
char pass[] = "YourPassword";
int fanRelay = 0;
void setup() {
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
pinMode(fanRelay, OUTPUT);
digitalWrite(fanRelay, HIGH);
}
void loop() {
Blynk.run();
}