Issue dht was not declard before

Issue dht was not declard before

diff --git a/ESP32/.vscode/arduino.json b/ESP32/.vscode/arduino.json
index 1ac7b33..fe55257 100644
--- a/ESP32/.vscode/arduino.json
+++ b/ESP32/.vscode/arduino.json
@@ -2,5 +2,5 @@
     "board": "esp32:esp32:esp32doit-devkit-v1",
     "configuration": "FlashFreq=80,UploadSpeed=115200,DebugLevel=none",
     "port": "COM10",
-    "sketch": "1x1_Beta_FlowSW.ino"
+    "sketch": "dht_error_was_not_declared\\dht_error_was_not_declared.ino"
 }
\ No newline at end of file
diff --git a/ESP32/dht_error_was_not_declared/dht_error_was_not_declared.ino b/ESP32/dht_error_was_not_declared/dht_error_was_not_declared.ino
new file mode 100644
index 0000000..fec0eed
--- /dev/null
+++ b/ESP32/dht_error_was_not_declared/dht_error_was_not_declared.ino
@@ -0,0 +1,189 @@
+#define BLYNK_PRINT Serial
+
+#include <WiFi.h>
+#include <WiFiClient.h>
+#include <BlynkSimpleEsp32.h>
+#include "DHT.h"
+
+
+char auth[] = "9d2ea3c204d3494caa739e5ab32a397f";
+char ssid[] = "Anuwat";
+char pass[] = "0817876668";
+
+
+#define DHTTYPE DHT22     // DHT 22
+
+DHT dht(DHTPIN, DHTTYPE);
+
+void setup()
+{
+Serial.begin(9600);
+Serial.println();
+Serial.println("DHTxx test!");
+ 
+  dht.begin();
+}
+
+const int DHTPIN  = 15;
+const int Relay1  = 13;
+const int Relay2  = 12;
+const int Relay3  = 14;
+const int Relay4  = 27;
+bool buttonStatus = 0;
+
+WidgetLED ledBlynk(V10);
+
+BlynkTimer timer;
+
+BLYNK_CONNECTED() {
+  Blynk.syncAll();
+}
+
+
+ BLYNK_WRITE(V1)
+{
+
+ if(param.asInt() == 0)
+  {
+    digitalWrite(Relay1, HIGH);
+    Serial.println("LED Turned ON");
+    Blynk.virtualWrite(V13, 1);
+    ledBlynk.on();
+  }
+  else
+  {
+    digitalWrite(Relay1, LOW);
+    Serial.println("LED Turned OFF");
+    Blynk.virtualWrite(V13, 0);
+    ledBlynk.off(); 
+
+  }
+ }
+BLYNK_WRITE(V13)
+{
+  if (param.asInt() == 0)
+  {
+    digitalWrite(Relay1, LOW);
+    ledBlynk.off();
+  }
+  if (param.asInt() == 1)
+  {
+    digitalWrite(Relay1, HIGH);
+    ledBlynk.on();
+  }
+}
+ BLYNK_WRITE(V2) 
+  {
+ if(param.asInt() == 0)
+  {
+    digitalWrite(Relay2, HIGH);
+    Serial.println("LED Turned ON");
+    Blynk.virtualWrite(V12, 1);
+    ledBlynk.on();
+  }
+  else
+  {
+    digitalWrite(Relay2, LOW);
+    Serial.println("LED Turned OFF");
+    Blynk.virtualWrite(V12, 0);
+    ledBlynk.off(); 
+
+  }
+ }
+BLYNK_WRITE(V12)
+{
+  if (param.asInt() == 0)
+  {
+    digitalWrite(Relay2, LOW);
+    ledBlynk.off();
+  }
+  if (param.asInt() == 1)
+  {
+    digitalWrite(Relay2, HIGH);
+    ledBlynk.on();
+  }
+}
+ BLYNK_WRITE(V3) 
+  {
+ if(param.asInt() == 0)
+  {
+    digitalWrite(Relay3, HIGH);
+    Serial.println("LED Turned ON");
+    Blynk.virtualWrite(V14, 1);
+    ledBlynk.on();
+  }
+  else
+  {
+    digitalWrite(Relay3, LOW);
+    Serial.println("LED Turned OFF");
+    Blynk.virtualWrite(V14, 0);
+    ledBlynk.off(); 
+
+  }
+ }
+BLYNK_WRITE(V14)
+{
+  if (param.asInt() == 0)
+  {
+    digitalWrite(Relay3, LOW);
+    ledBlynk.off();
+  }
+  if (param.asInt() == 1)
+  {
+    digitalWrite(Relay3, HIGH);
+    ledBlynk.on();
+  }
+}
+BLYNK_WRITE(V4) 
+  {
+ if(param.asInt() == 0)
+  {
+    digitalWrite(Relay4, HIGH);
+    Serial.println("LED Turned ON");
+    Blynk.virtualWrite(V27, 1);
+    ledBlynk.on();
+  }
+  else
+  {
+    digitalWrite(Relay4, LOW);
+    Serial.println("LED Turned OFF");
+    Blynk.virtualWrite(V27, 0);
+    ledBlynk.off(); 
+
+  }
+ }
+BLYNK_WRITE(V27)
+{
+  if (param.asInt() == 0)
+  {
+    digitalWrite(Relay4, LOW);
+    ledBlynk.off();
+  }
+  if (param.asInt() == 1)
+  {
+    digitalWrite(Relay4, HIGH);
+    ledBlynk.on();
+  }
+}
+void setup() 
+{
+ Serial.begin(9600);
+ //Relay
+ pinMode(Relay1, OUTPUT);
+ pinMode(Relay2, OUTPUT);
+ pinMode(Relay3, OUTPUT);
+ pinMode(Relay4, OUTPUT);
+ //set default status
+ digitalWrite(Relay1, LOW);
+ digitalWrite(Relay2, LOW);
+ digitalWrite(Relay3, LOW);
+ digitalWrite(Relay4, LOW);
+
+ Blynk.begin(auth, ssid, pass);
+
+}
+void loop()
+{   
+ Blynk.run(); 
+ timer.run();
+}
\ No newline at end of file

GitHub
sha: 9ed91f63