Arduino – DHT11 Sensor

Arduino – DHT11 Sensor

Arduino – DHT11 Sensor

Introduction: Arduino – DHT11 Sensor

Hi Guys,

This is my first Arduino tutorial, even though I know there’s huge number of Arduino articles and apprentices videos easy available online, I decided to make my own, to help anyone of us start with basic of Arduino and Electronics.

Description:

This tutorial covers the basic low cost DHT11 [Humidity and Temperature sensors inbuilt] and also very common sensor for Arduino projects. The chip inside the DHT11 perform all the heavy task and only output a digital signal with humidity and temperature, compatible with any MCUs, ideal for those who want some basic data logging stuffs, Home Automation and more.

DHT11 Specifications:

· 3 to 5V power

· Max. 2.5mA during conversion

· Humidity range 20-80% with 5% accuracy

· Temperature range 0-50°C with ±2°C accuracy

Pinout:

· VCC (3 to 5V power)

· Data out

· NC

· GND

Parts Required:

You will need the following to make the circuit.

· 1 x Arduino Uno

ARDUINO UNO R3

· 1 x DHT11

DHT11 temperature

· 1 x 10KΩ Resistor

· Jumper Wires

Step 1: ​Schematic:

Here’s how to connect the DHT11 to Arduino.

Step 2: ​Source Code:

Here’s the codes for this project.

1. Download the DHT Library from Adafruit repository.

2. Unzip the DHT library and rename the extracted folder to DHT.

3. Copy this folder to the following path to install the DHT library.

C:\Program Files (x86)\Arduino\libraries

4. Upload below code.

You should see the humidity and temperature on the serial monitor once the sketch has been successfully uploaded to Arduino.

Share this post

Leave a Reply

Your email address will not be published. Required fields are marked *