How to Interface DHT11 Sensor With Arduino

The DHT11 is a widely used to measure Temperature and humidity sensor with the help of microcontrollers. The sensor can able to measure maximum of 50C and 90% of humidity level.
in this tutorial, we are going to learn how to connect dht11 module with arduino and program the code in the arduino IDE to view the output in LCD module


Materials needed:

Arduino UNO - 1 x 1

DHT11 module -1 x 1

16x2 LCD - 1 x 1

LCD breakout board - 1 x 1

jumper wires - few numbers

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Step 1: Download the DHT11 Library and ADAFruit Library From the Github As Zip File

These two libraries are necessary for making code for the dht11 sensor

Step 2: Step2: Add Both Downloaded Zip File Through Manage Library

After adding the library.. you have to verify that the file is added in the bottom

Step 3: Step 3: Verify the Example Code Added in the Library

Open the sample program and compile it to check weather you are working in a right path.

Step 4: Step 4: Connect the Circuit As Per the Circuit Diagram

Give the proper connections to the LCD using the breakout board.

RS--> 13

E--> 12





RW should be grounded

Step 5: Step5: Download the Code Given Below

edit for heading what you need in the LCD

Step 6: Step 6: Test the Output in the LCD

so finally you can get the temperature and humidity surrounding your sensor... you can update the code to view the output on Mobile devices.

Be the First to Share


    • CNC Contest

      CNC Contest
    • Make it Move

      Make it Move
    • Teacher Contest

      Teacher Contest