ESP32 IoT device to monitor environment data and upload it to a webserver
The Web Server serves an HTML page from the SPIFFS data
directory that is
read and updated with the sensor data using snprintf() before being sent to the
server along with the relevant style.css
(also present in the data
directory). The webpage is reloaded every three seconds using simple JavaScript
code so the sensor data being displayed remains updated.
- Uses Arduino-ESP32 by Espressif
- Programmed in C/C++ and HTML/CSS
- Web Server available on LAN
- Connections to the server are limited by the WiFi connection
The easiest way to build the project and upload it to an ESP32 board would be using the Arduino IDE.
- Get the Arduino-ESP32 core
- Download the Adafruit Unified Sensor library along with the Adafruit DHT22 library from the Library Manager
- Downalod the LiquidCrystal I2C library from the Library Manager
- Build and upload the code to your ESP32 board
- Add a library for MQ135