loading

Hi, guys today we are going to make humidity sensor DHT11 work it with a LCD display.

It is not hard for a beginner just wiring the LCD display is the hard part.

So lets start:):):):):):):):)!!!!!!!!!!

Step 1: Gather Your Body Parts

You will need :

1. DHT11 humidity sensor module

2. LCD display (i have given a code for I2C too)

3. Arduino (I used a UNO)

4. potentiometer

5. wires

Step 2: Join Your Body Parts

The DHT11 sensor pins are:

1. GND to GND

2. VCC to 5V

3. S to pin 11 (on the Arduino)

The LCD pins are:

LCD Pin # LCD PIN NAME Arduino Pin

1 VSS GND

2 VDD 5V

3 V0 Potentiometer Center Pin

4 RS 10

5 RW GND

6 E 9

7,8,9,10 not connected

11 DB4 Pin 5

12 DB5 Pin 4

13 DB6 Pin 3

14 DB7 Pin 2

15 Backlight LED +V 5V

16 Backlight LED GND GND

The potentiometer left pin will go to 5V and right to GND

Step 3: GIve a Messege to Your Brian to Work

the codes are:

Step 4: Body Functioning Properly

Finished

plz follow me:):):):):):):):):)

<p>Has anyone experienced the &quot;#include &lt;Adafruit_Sensor.h&gt;&quot; error?</p>
<p>Thanks for the great instructable!</p><p>However, I found that the code you provided would not work for me. I kept getting errors. After some searching and trial &amp; error, I fixed it. I'm not sure if it was just me with the errors or not, but in case someone else tries it, here is the &quot;revised&quot; code that worked for me:</p><p>#include &lt;LiquidCrystal.h&gt; // load lib<br>#include &lt;DHT.h&gt; // load lib<br> <br>LiquidCrystal lcd(10,9,5,4,3,2); // make a lcd object</p><p>#define dht_apin 11 <br>#define dht_type DHT11<br>DHT dht(dht_apin, dht_type); // sensor pin S to pin11</p><p>void setup() {</p><p>lcd.begin(16,2); // to tell arduino there are 16 colunms and 2 rows<br>}</p><p>void loop(){<br>float h = dht.readHumidity();<br>float f = dht.readTemperature();<br>lcd.setCursor(0,0); // row 1<br>lcd.print(&quot; Humidity = &quot;); // print on the lcd Humidity = <br>lcd.print(h); // to print the humidity<br>lcd.setCursor(14,0); //set cursor just after humidity integer (no decimals) <br>lcd.print(&quot;% &quot;); //print &quot;percentage&quot; symbol</p><p>lcd.setCursor(0,1);<br>lcd.print(&quot; Temp = &quot;); // print on the lcd temp = <br>lcd.print(f); // print on the lcd temperture<br>lcd.setCursor(10,1); //take out deceimal places on temp<br>lcd.print((char)223); // print &quot;degrees&quot; symbol <br>lcd.println(&quot;C &quot;); // print &quot;C&quot; with spaces after to fill 16 character line<br>delay (2000); // delay <br>}</p><p>FYI - I never would have figured out the wiring without this instructable. Thanks again.</p>
<p>Acually i think it was the wiring problem in the code </p>

About This Instructable

2,294views

35favorites

License:

More by hrhofkhan:DHT11 Humidity sensor with a lcd display easy!! security alarm Laser detector or sensor for arduino Beginner  Breath analyzer with OLED lcd and MQ3 gas sensor 
Add instructable to: