#define BLYNK_TEMPLATE_ID "TMPL33gBqiogO"
#define BLYNK_TEMPLATE_NAME "DHT11"
#define BLYNK_AUTH_TOKEN "3npkqY7Fr0wqu8XqCmP-OTThPHm5BTql"
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
#define led3 2
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Wokwi-GUEST";
char pass[] = "";
BLYNK_WRITE(V0) {
int pinValue = param.asInt();
digitalWrite(led3, pinValue);
}
void setup() {
// put your setup code here, to run once:
pinMode(led3, OUTPUT);
Blynk.begin(auth, ssid, pass);
}
void loop() {
// put your main code here, to run repeatedly:
Blynk.run();
delay(10); // this speeds up the simulation
}