You are on page 1of 19

A PRESENTATION ON

IOT based Smart Environment Monitoring


system
Presented By

Under the guidance of


This project IOT based Smart Environment
Monitoring system is a very innovative system
which will help to keep judging temperature
and humidity of Environment and real time
fire alert system.
A blynk android application is built to show the
status to the user monitoring continuous
temperature and humidity. Give fire alert and
email to the user.
Environment safety always monitor by user using
IOT.
5V POWER SUPPLY(MOBILE CHARGE/USB
PORT)
USB TO MINI USB DATA CABLE
FLAME SENSOR
DHT11 SENSOR
NODE MCU
FEMALE TO FEMALE CONNECTING WIRE
PLY COVER
BUZZER
ARDUINO IDE
USB TO SERIAL DRIVER
ESP8266 BORAD DRIVER
ESP8266 LIBRARY
EMBEDDED C
SOURCE CODE
We connect ultrasonic sensor with node mcu
module. This sensor measures distance from
the upper part of the dustbin to fill part of the
dustbin and gives the data to the node mcu
module. According to our program node mcu
module push this data to blynk server.
We can see that data as well as notification in my
mobile phone through blynk application. But
mobile must be connect with internet.
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <DHT.h>
#define DHTPIN D2
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);
uint8_t h, t;
int fire;
char auth[] =
"R4_qQc_hbgWB2VNSerycf1SzKIgr5_0D";
char ssid[] = "IOT";
char pass[] = "12341234";
void sendSensor()
{
h = dht.readHumidity();
t = dht.readTemperature(); // or dht.readTemperature(true) for Fahrenheit

if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
// You can send any value at any time.
// Please don't send more that 10 values per second.
Blynk.virtualWrite(V5, h);
Blynk.virtualWrite(V6, t);
Serial.println(h);
Serial.println(t);
}
void setup()
{
// Debug console
Serial.begin(115200);
dht.begin();
delay(10);
Blynk.begin(auth, ssid, pass);
pinMode(D7,OUTPUT);//buzzer
pinMode(D5,INPUT); // flame/fire sensor
}
void loop()
{
Blynk.run();
fire=digitalRead(D5);
if(fire==0)
{
digitalWrite(D7,HIGH); // buzzer activate
Serial.println("FIRE DETECTED");
Blynk.virtualWrite(V2,"FIRE DETECTED\n");
Blynk.notify("FIRE DETECTED");
Blynk.email("choudhurydharitri07@gmail.com","FIRE ALERT","FIRE
DETECTED");
}
else
{
digitalWrite(D7,LOW); // buzzer deactivate
Serial.println("FIRE NOT DETECTED");
//Blynk.print(V2,"FIRE DETECTED\n");
}
delay(1000);
//timer.run();
sendSensor();
}
 No need to physically check amount of
Environment condition always.
 Fire safety can be achieve easily.
 Smart way to measure temperature and
humidity.
Always power supply required
Internet connection must be there.
 Fire catch can be control.
 For safety and environment judgment it can be
upgrade into higher applicable device.
We design both the software and hardware
required for this project and tested its working
condition in every angle.

You might also like