Humidity Sensor

The Humidity Sensor project demonstrates how to use a DHT11 humidity sensor with an Arduino Mega to measure relative humidity in the environment. The DHT11 sensor provides accurate humidity readings and communicates with the Arduino via a digital signal. This project reads the humidity data from the sensor and prints it to the Serial Monitor.

Components Needed

Block Diagram

Circuit Setup

Connect the DHT11 to Arduino Mega:

Instructions

Install Required Libraries:

Download and install the

Circuit Setup:

Connect the DHT11 sensor module to the Arduino Mega as described in the circuit setup section.

Code Upload:

Open Arduino IDE and create a new sketch.

Copy and paste the provided Arduino code into the sketch.

Testing:

Upload the code to the Arduino Mega.

Open the serial monitor in Arduino IDE (set to 9600 baud).

Observe the Serial Monitor for humidity readings printed every few seconds.

Applications

Notes

Ensure the DHT11 sensor is placed in an environment representative of where you want to measure humidity.

The DHT11 sensor provides relative humidity readings. For more precise applications, consider using the DHT22 sensor or other higher precision sensors.

Adjust the delay time in the