Basics of DHT Sensor | How to interface DHT with Arduino | DHT Code

Опубликовано: 10 Июль 2026
на канале: DoxPro Robotics Pvt. Ltd.
180
6

Introduction:
The DHT11 sensor is a widely used digital temperature and humidity sensor that is easy to integrate into electronic projects. In this guide, we will explore the circuit diagram and code for interfacing the DHT11 sensor with a microcontroller. The sensor provides accurate temperature and humidity readings and is suitable for various applications such as weather stations, home automation, and environmental monitoring.

Circuit Diagram:
The circuit consists of the following components:
DHT11 Sensor
Microcontroller (e.g., Arduino)
Connecting wires
Power source (5V)

Connection Steps:
1) Connect the VCC pin of the DHT11 sensor to the 5V output of the microcontroller.
2) Connect the GND pin of the DHT11 sensor to the GND (ground) pin of the microcontroller.
3) Connect the DATA pin of the DHT11 sensor to a digital pin on the microcontroller.

Circuit Diagram Description:
VCC (5V): Provides power to the DHT11 sensor.
GND (Ground): Connects the ground of the DHT11 sensor to the microcontroller.
DATA: Transmits digital data from the DHT11 sensor to the microcontroller. This pin is connected to a digital pin on the microcontroller