Language
Temperature and Humidity Monitor with ESP32
This project is an IoT application that uses the ESP32 microcontroller to monitor temperature and humidity. Data is collected using the DHT21 sensor and displayed on a web page hosted on the ESP32. Additionally, the web interface allows users to control a lamp and download recorded data. 📊📉
Features 🌟
- WiFi Connectivity: Connects to the specified WiFi network. 📶
- DHT21 Sensor: Reads temperature and humidity data. 🌡️
- Web Server: Hosts a web page for displaying sensor data and controlling the lamp. 💻
- SPIFFS: Stores data locally on the ESP32 file system. 🗄️
- JSON: Uses JSON for data exchange between the ESP32 and the web interface. 🔄
Hardware Required 🛠️
- ESP32 board
- DHT21 sensor
- 3.3V voltage regulator
- Resistors and capacitors
- Breadboard and wires
Software Required 💻
- Arduino IDE
- ESP32 and DHT libraries
Setup 🚀
- Connect the DHT21 sensor to the ESP32.
- Install the required libraries in the Arduino IDE.
- Upload the code to the ESP32.
- Open the web page to view data and control the lamp.
Code Explanation 📜
The code for this project is written in C++ and is divided into the following sections:
- Variable Definitions: Defining the variables and required libraries.
- Setup: Initial settings including WiFi connection and sensor setup.
- Main Loop: Continuous reading of sensor data and updating the web page.
Contributing 🤝
Feel free to fork this repository and contribute by sending pull requests. For major changes, please open an issue first to discuss what you would like to change. 🌟
Profile 🧑💻
View my profile on GitHub: Esmail Sarhadi
Project Link 🔗
Check out this project on GitHub: IoT-Temperature-and-Humidity-Monitor-with-ESP32
Donation 💰
If you find this project useful, consider making a donation: 💸
License 📄
This project is licensed under the MIT License - see the LICENSE file for details.