This project allows you to monitor real-time temperature and humidity values from a NodeMCU (ESP8266) with a DHT11 sensor, and displays the data on a web page using Flask.
MongoDB section is being worked on currently
esp/esp.ino: Arduino code for the NodeMCU and DHT11 sensor.static/script.js: JavaScript file for the web page.static/styles.css: CSS file for styling the web page.static/thermometer_asset.png: PNG asset for the thermometer.templates/index.html: HTML file for the web page.app.py: Flask application for handling sensor data and serving the web page.mongo.py: Local Module that handles all the operations for MongoDB database.diagram.png: Project plan diagram..gitignore: Git configuration file to ignore certain files from version control.
- The NodeMCU gathers temperature and humidity data using the DHT11 sensor.
- The data is transmitted to the Flask application endpoint in JSON format.
- The Flask application processes the data and updates the web page in real-time.
- Connect the DHT11 sensor to the NodeMCU as per the
esp/esp.inocode. - Upload the
esp/esp.inocode to the NodeMCU using the Arduino IDE. - Run the Flask application by executing
python app.pyin your terminal. - Open your web browser and navigate to specified url to view real-time temperature and humidity values.
