The Code
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <Hash.h>
#include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include <Adafruit_Sensor.h>
#include <DHT.h>const char* ssid = "REPLACE_WITH_YOUR_SSID";
const char* password = "REPLACE_WITH_YOUR_PASSWORD";#define DHTPIN 5 // Digital pin connected to the DHT sensor#define DHTTYPE DHT1 // DHT 11 (AM2302)DHT dht(DHTPIN, DHTTYPE);Last updated