


Since the DHT11 sensor resolution is 1, the values of the humidity and temperature are stored in two variables with type byte (8-bit unsigned), I named them RH (for the humidity) and Temp (for the temperature). This library initiates the DHT11 sensor and reads the values of the humidity and temperature. In this interfacing I used DHT sensors library (DHT11, DHT21 and DHT22) from Adafruit. The 10K variable resistor is used to control the contrast of the LCD screen and the 330 ohm resistor supplies the LCD backlight LED. A pull-up resistor should be added to the data pin with a value between 4.7K and 10K. Our interfacing circuit diagram is shown below.Īs show in the circuit schematic the DHT11 sensor has 4 pins: VCC (+5V), Data, NC(not connected pin) and GND (from left to right). This topic shows how to interface Arduino UNO board with DHT11 digital humidity and temperature sensor where the measure humidity and temperature are displayed on 1602 LCD screen.Īrduino + DHT11 + LCD connection circuit:
