0% found this document useful (0 votes)
11 views4 pages

Iot MP Report

The micro-project report details the development of a temperature monitoring system using a DHT11 sensor and an LED indicator, implemented with an Arduino board. The system measures real-time temperature and humidity, providing a visual alert when temperatures exceed 30°C. It highlights the project's objectives, components, working principles, and potential applications in home automation, agriculture, and industrial monitoring.

Uploaded by

adityapandji1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views4 pages

Iot MP Report

The micro-project report details the development of a temperature monitoring system using a DHT11 sensor and an LED indicator, implemented with an Arduino board. The system measures real-time temperature and humidity, providing a visual alert when temperatures exceed 30°C. It highlights the project's objectives, components, working principles, and potential applications in home automation, agriculture, and industrial monitoring.

Uploaded by

adityapandji1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Micro-project Report

Internet of Things (314006)


Temperature Monitoring System with LED Indicator
1. Introduction

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

 To measure real-time temperature and humidity using the DHT11 sensor.


 To provide a visual warning using an LED when the temperature exceeds 30°C.
 To implement embedded programming using Arduino C++.
 To enhance understanding of IoT-based environmental monitoring.

3. Components Used

 DHT11 Temperature & Humidity Sensor


 ESP8266/Arduino Board
 LED (Light Emitting Diode)
 Jumper Wires

4. Circuit Diagram
5. Working Principle

 The DHT11 sensor continuously measures temperature and humidity.


 The microcontroller reads the temperature value from the DHT11 sensor.
 If the temperature exceeds 30°C, the LED turns ON. Otherwise, it remains OFF.
 The measured temperature and humidity values are printed on the serial monitor.

6. Code

#include <DHT.h>

#define DHTPIN 2 // Pin where the DHT11 data pin is connected


#define DHTTYPE DHT11 // DHT 11 type
#define LEDPIN 3 // Pin where the LED is connected

DHT dht(DHTPIN, DHTTYPE); // Initialize the DHT11 sensor

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

// Check if any reading failed


if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor!");
return;
}

// Print the humidity and temperature values


Serial.print("Humidity: ");
Serial.print(h);
Serial.print(" %\t");
Serial.print("Temperature: ");
Serial.print(t);
Serial.println(" *C");

// If the temperature is above 30°C, turn on the LED


if (t >= 30.0) {
digitalWrite(LEDPIN, HIGH); // Turn on the LED
Serial.println("LED ON! Temperature is above 30°C.");
} else {
digitalWrite(LEDPIN, LOW); // Turn off the LED
Serial.println("LED OFF.");
}

delay(2000); // Wait for 2 seconds before taking another reading


}

7. Output

8. Applications

 Home Automation: Automatic cooling system activation.


 Agriculture: Protecting crops from excessive heat.
 Industrial Use: Monitoring temperature-sensitive processes.
9. Advantages

✅ Low-cost and easy to implement


✅ Real-time temperature monitoring
✅ Simple alert mechanism using LED
✅ Can be extended to IoT applications

10. Future Scope

🔹 Adding an LCD/OLED display for better visibility.


🔹 Integrating WiFi-based notifications to send alerts remotely.
🔹 Expanding to a full IoT system with a mobile app.

11. Conclusion

This micro-project successfully implements a temperature monitoring system using the


DHT11 sensor and an LED indicator. The project helps in understanding embedded
programming and sensor integration for real-time monitoring applications.

You might also like