#define BLYNK_TEMPLATE_ID "TMPL3zAArbCWJ"
#define BLYNK_TEMPLATE_NAME "DHT 11"
#define BLYNK_AUTH_TOKEN "mIt6NUvTQWmC-r9LAF10ZQloR88hNVbX"

#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
#include "DHT.h"

DHT dht(14, DHT22);

char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Wokwi-GUEST";
char pass[] = "";

void setup(){
  Serial.begin(9600);
  Blynk.begin(auth, ssid, pass);
  dht.begin();
}

void loop(){
  float temp = dht.readTemperature();
  delay(500);
  float humid = dht.readHumidity();
  delay(500);
  Serial.println(temp);
  Serial.println(humid);

  Blynk.virtualWrite(V0, temp);
  Blynk.virtualWrite(V1, humid);

  Blynk.run();

}