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

IoT Project Report

The Smart Home IoT project utilizes a DHT11 sensor and ESP32 to monitor temperature and humidity in real-time, with data visualized on a web-based dashboard. The system features wireless communication, alerts for threshold breaches, and is designed to improve indoor air quality and energy efficiency. Key components include the ESP32 microcontroller, DHT11 sensor, and web browser for GUI access.
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)
42 views4 pages

IoT Project Report

The Smart Home IoT project utilizes a DHT11 sensor and ESP32 to monitor temperature and humidity in real-time, with data visualized on a web-based dashboard. The system features wireless communication, alerts for threshold breaches, and is designed to improve indoor air quality and energy efficiency. Key components include the ESP32 microcontroller, DHT11 sensor, and web browser for GUI access.
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

IoT Project Report: Smart Home

Temperature & Humidity Monitoring


System
1. Introduction (System Analysis)
This project is a Smart Home IoT system that measures and monitors temperature and
humidity in real time using a DHT11 sensor connected to an ESP32 development board. The
collected data is visualized on a web-based dashboard hosted via an HTTP server on the
ESP32 using Wi-Fi.

Functional Requirements:

 - Real-time temperature and humidity monitoring


 - Wireless data communication via Wi-Fi
 - Visual feedback via Serial Monitor and web GUI
 - Alerts if temperature or humidity crosses threshold

Significance:

Monitoring environmental conditions helps improve indoor air quality, prevent mold
growth, and optimize HVAC usage for energy efficiency.

2. System Diagram
Architecture Overview:

+-------------+ I2C/UART +-----------+


| DHT11 | ------------------> | ESP32 |
+-------------+ +-----------+
|
Wi-Fi (HTTP Server)
|
+---------------+
| Web Dashboard |
+---------------+

Components Used:

Component Function
ESP32 Main IoT controller, Wi-Fi enabled
microcontroller
DHT11 Sensor Measures temperature and humidity
Web Browser GUI for data visualization
USB Cable Power and programming interface
Arduino IDE Programming and code upload

3. Code (Client-side on ESP32)


The following code runs on the ESP32 to read sensor data and serve it over a local web
page:

#include <WiFi.h>
#include <DHT.h>

#define DHTPIN 4
#define DHTTYPE DHT11

DHT dht(DHTPIN, DHTTYPE);

const char* ssid = "Your_SSID";


const char* password = "Your_PASSWORD";

WiFiServer server(80);

void setup() {
Serial.begin(115200);
dht.begin();

WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("Connecting to WiFi...");
}

Serial.println("WiFi connected");
Serial.println(WiFi.localIP());

server.begin();
}

void loop() {
WiFiClient client = server.available();
if (client) {
float temp = dht.readTemperature();
float hum = dht.readHumidity();

String html = "<!DOCTYPE html><html><body><h1>Environment Monitor</h1>";


html += "<p>Temperature: " + String(temp) + " °C</p>";
html += "<p>Humidity: " + String(hum) + " %</p></body></html>";

client.println("HTTP/1.1 200 OK");


client.println("Content-type:text/html");
client.println();
client.println(html);
client.stop();
}
}

4. Implementation & Testing Snapshots


Include snapshots from your simulation environment showing:

 - Circuit design in Tinkercad or Wokwi


 - Serial Monitor showing sensor output
 - Screenshot of the web dashboard
 - ESP32 connected to Wi-Fi and displaying IP address

5. Protocols Used
Protocol Description
I2C/UART Communication between DHT11 and
ESP32
Wi-Fi (802.11) Wireless communication for data transfer
HTTP Web server on ESP32 for GUI
HTML For rendering the data on browser GUI

6. Discussion on Issues & Privacy


Challenges: Sensor inaccuracy (~±2°C), occasional Wi-Fi disconnections.

Privacy/Security: The web server is hosted locally and not encrypted (no HTTPS). For
higher security, implement password access and TLS encryption.

7. References
1. Espressif Systems (2020). ESP32 Technical Reference Manual. Available at:
https://www.espressif.com
2. Adafruit (2023). DHT11 Sensor Guide. Available at: https://learn.adafruit.com
3. Arduino (2024). ESP32 WiFi Web Server Tutorial. Available at: https://www.arduino.cc

You might also like