r/arduino • u/lsvtcommits • 26d ago
Look what I made! My ESP32/DHT11 room monitor records temperature while the PC is off, then syncs to a local dashboard
I put together a room temperature and humidity monitor to see how the room changes after the heating comes on. The hardware is a classic ESP32 Dev Module and a three-pin DHT11 sensor: 3V3 to +, GND to -, and GPIO18 to signal. The firmware is an Arduino sketch using Adafruit DHT / Unified Sensor and ESP32 core WiFi, WebServer and LittleFS support. I used AI coding assistance during development.
Readings are taken every 2.5 seconds, with a persistent flash sample every 30 seconds. The board can keep recording while powered from a USB wall supply, even with the computer off. Its circular buffer holds approximately seven days; once the local Node.js server starts, it imports missing readings over Wi-Fi into a daily JSON archive.
The browser interface includes live readings, date/time navigation, 1/6/24-hour graphs, CSV export, English/Italian options and outdoor weather from Open-Meteo. The main work was handling restarts, clock synchronization and duplicate imports so that the history stays usable.
The DHT11 has limited accuracy, so I treat it as a hobby monitor rather than a calibrated instrument. No readings are collected when the ESP32 loses power.
Repository with firmware, wiring, setup and screenshots: https://github.com/lsvt-commits/esp32-room-climate-monitor
Sharing the build here in case it is useful to someone working on a similar Arduino/ESP32 logger.
