+21622886281
Arduino DHT11 I2C LCD 1602 Display

Measuring temperature with DHT11 sensor and Arduino

Purpose of this tutorial:

In this tutorial we will see how to read the temperature measured by the DTH11 sensor and display it on an LCD display.

Required components

  • Arduino UNO
  • sensor DTH11
  • LCD display
  • connecting wires

Mounting

For the DTH11 sensor, we connect:

  • DATA pin of the DTH11 sensor to the digital PIN2 of arduino.
  • VCC pin of the DTH11 sensor to the 3.3 V PIN of Arduino.
  • GND pin of the DTH11 sensor to the GND of Arduino.

For the LCD display we connect:

  • the SDA pin at the Arduino analog pin A4.

  • the SCL pin at the Arduino analog pin A5.

  • the VCC pin at the Arduino 5v pin.

  • the GND pin at the Arduino GND pin

Program

Here is the program that reads the temperature measured by the DTH11 sensor and displays it on an LCD display.

 

Note: you must import the two libraries DTH11 and I2c_LCD1602




0 commentaire


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top