Simple DHT11 Temperature Moniter

by RishabhL in Circuits > Arduino

4397 Views, 18 Favorites, 0 Comments

Simple DHT11 Temperature Moniter

P_20160807_181702.jpg
weather-temperature-thermometer-hot-heat-ss-1920.jpg

The project is about Temperature logger system. In this project you can monitor your room temperature on your android smartphone app. It is simple to make and accurate. This project shows temperature, humidity and heat index. It is very simple to make and components are not costly.

Components:

P_20160522_151927.jpg
P_20160522_152011.jpg
P_20160522_152116.jpg
DHT11.jpg
RES1K_MED.jpg
9V HW Battery.jpg
Breadboard.jpg

1. Arduino Uno or Any

2. DHT11/22

3. Breadboard

4. Resistor 1K x1

5. Bluetooth Hc-05 or Hc-06

7. Patch Cords

8. Battery

9. Android Smartphone

10. Little Knowledge about Arduino

Connections:

Capture4.JPG
P_20160807_181002.jpg
P_20160807_181007.jpg
P_20160807_181202.jpg
P_20160807_181702.jpg

First Upload sketch from next step to arduino then make connections.

Connect pin 2 of arduino to dht11 pin 2 as shown in ckt diagram.

5volt of arduino to Vcc of dht11 and bluetooth.

Gnd of arduino to Gnd of dht11 & bluetooth.

Tx of the arduino to Rx of Bluetooth .

Connect resisstor 1k ohm between pin 1 & 2 of DHT11 sensor.

Upload Sketch:

Capture3.JPG

First Include dht11 library to your arduino ide

Go to>sketch>inclued library>Add zip> select the zip file

Now upload sketch


#include "DHT.h"

#define DHTPIN 2 // pin for connecting dht11/dht22 sensor

#define DHTTYPE DHT11 // DHT 11 : type of sensor you are using

DHT dht(DHTPIN, DHTTYPE);

void setup()

{ Serial.begin(9600);

Serial.println("DHT11 Moniter System");

dht.begin();

}

void loop()

{ delay(2000);// Wait a few seconds for sensor to measure

float h = dht.readHumidity();

// Read temperature as Celsius

float t = dht.readTemperature();

// Read temperature as Fahrenheit

float f = dht.readTemperature(true);

// Check if any reads failed and exit early (to try again).

if (isnan(h) || isnan(t) || isnan(f))

{ Serial.println("Failed to read from DHT sensor!");

return;

}

float hi = dht.computeHeatIndex(f, h); //compute the heat index, must give temp in fahrenheit

Serial.print("Humidity: ");

Serial.print(h);

Serial.print(" %\n\n");

Serial.print("Temperature: ");

Serial.print(t);

Serial.print(" *C \n");

Serial.print(f);

Serial.print(" *F\n");

Serial.print("Heat index: ");

Serial.print(hi);

Serial.println(" *F");

}

Installing Android App

Capture.JPG
Capture1.JPG
Screenshot_2016-08-07-18-15-38.jpg
Screenshot_2016-08-07-18-16-14.jpg

You Can also build your own App using MIT Appinventor 2.

Capture3.JPG
P_20160807_181702.jpg

Start Bluetooth Of phone Pair with Hc-05 default password is 1234 or 12345

Now open App Select Bluetooth Device Hc-05.

And Moniter the Temperature, Humidity & Heat Index.