Arduino Tutorial 4: DHT 11 Temperature and Humidity Sensor Tutorial

Arduino Tutorial 4: DHT 11 Temperature and Humidity Sensor Tutorial

This Arduino DHT11 Tutorial will teach you how to display the temperature and humidity levels around you by using the DHT11 sensor. This sensor needs to use a library file downloaded from the internet.

Components needed:

  • Arduino UNO
  • DHT 11 Sensor


1- Refer to the circuit diagram below for the wiring  of the components

arduino dht11 tutorial, arduino temperature sensor, dht11 tutorial arduino, dht11 arduino, how to use dht11 with arduino, dht11 sensor, dht11 sensor tutorial, tutorial arduino dht11 sensor, dht11 sensor coding, arduino code for dht11 sensor


3-  Download the library file from the link below and install the library file. Refer to Tutorial 2 on how to install the Arduino library file.


4- Copy and paste the below code into Arduino IDE Software and click Upload.

#include <dht.h>

dht DHT;

#define DHT11_PIN 7

void setup(){

void loop()
  int chk = DHT.read11(DHT11_PIN);
  Serial.print("Temperature = ");
  Serial.print("Humidity = ");

5- Once you have done uploading the code, go to Tools> Serial Monitor. You will see the output on the Serial Monitor displaying the temperature and humidity values.

Leave a Reply

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

%d bloggers like this: