Welcome to the Humidity Sensor Arduino Project! This project involves creating a digital humidity sensor using analog components, primarily a capacitor from a DHT11 sensor, and interfacing it with an Arduino board. The setup allows you to compare the performance of a custom-made sensor with the standard DHT11 sensor.
- Arduino Board: Interfaces with both the capacitor and the DHT11 sensor.
- Capacitor: Acts as a part of the custom humidity sensor.
- DHT11 Sensor: A standard digital sensor for humidity and temperature.
-
Arduino Code:
- Reads data from both the capacitor and the DHT11 sensor.
- Charges and discharges the capacitor cyclically to measure capacitance.
- Converts capacitance to numerical values for humidity measurement.
- Includes a watchdog timer to reset the board and prevent overloading.
-
Python Code:
- Reads data from the Arduino via serial communication.
- Calibrates capacitance values and converts them to humidity percentages.
- Stores data in CSV and JSON files for further use.
- Synchronizes JSON data with
app.py
for web visualization.
-
Web Interface:
- Flask Application: Uses the Flask library to connect to an HTML page.
- HTML Page: Visualizes data from the sensors and updates regularly.
Figure 1: Hardware Setup - Arduino board, capacitor connected (TinkerCAD Simulation)
Figure 2: Software Architecture - Integration of Arduino, Python, and web interface
Figure 3: Web Interface Functionality - Data visualization and real-time updates
Figure 4: Python Code Flow - Data reading, calibration, and storage
DHT11 Sensor | Capacitor Component |
---|---|
![]() |
![]() |
Figure 5: DHT11 Sensor and Capacitor Component used for Humidity Measurement
Figure 6: Capacitor Charge-Discharge Cycle for Humidity Measurement
Figure 7: Comparison of Humidity Values between DHT11 Sensor and Capacitor
This project effectively demonstrates the integration of analog and digital components to create a functional humidity sensor system. The combination of Arduino, Python, and web technologies provides a comprehensive solution for environmental monitoring.
Feel free to explore the project and contribute to its development!