Skip to content

Instantly share code, notes, and snippets.

/*********
ESP32 Combined Web Server (AP Mode)
- Control GPIO 26 & 27
- Read DHT Temperature & Humidity
- Retro 90s Style Interface with Analog Gauges
*********/
#include "WiFi.h"
#include "ESPAsyncWebServer.h"
#include <Adafruit_Sensor.h>
#include "DHT.h"
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#define DHTPIN 4
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
LiquidCrystal_I2C lcd(0x27, 16, 2);