Iot MP Report
Iot MP Report
This micro-project is based on the DHT11 temperature and humidity sensor, which measures
temperature and displays it on the serial monitor. Additionally, an LED indicator provides a
visual alert when the temperature exceeds 30°C. The system is implemented using an Arduino
board with the DHT11 sensor and an LED.
2. Objectives
3. Components Used
4. Circuit Diagram
5. Working Principle
6. Code
#include <DHT.h>
void setup() {
Serial.begin(9600); // Start serial communication
dht.begin(); // Initialize the DHT11 sensor
pinMode(LEDPIN, OUTPUT); // Set the LED pin as an OUTPUT
Serial.println("Humidity and Temperature Monitoring");
delay(2000); // Delay for sensor stabilization
}
void loop() {
float h = dht.readHumidity(); // Read humidity
float t = dht.readTemperature(); // Read temperature in Celsius
7. Output
8. Applications
11. Conclusion