Product Page

DHT11 Digital Temperature Humidity Sensor Module in Pakistan

 450

[yith_wcwl_add_to_wishlist]

Need some help?

Contact Us

Product Ships in

2-3-business Days

Payment Methods:

DHT11 Digital Temperature Humidity Sensor Module in Pakistan

 

The DHT11 temperature and humidity sensor module for Arduino features an on-board power and data indicator LED, a built-in pull-up resistor, and a simple 3-pin or 4-pin breakout board. It operates on 3.3V to 5V, measuring 0–50°C temperatures and 20–80% humidity levels via a digital single-wire protocol. [1, 2, 3, 4, 5]
Module Features & Specs
  • Operating Voltage: 3.3V to 5V DC
  • Temperature Range: 0°C to 50°C (±2°C accuracy)
  • Humidity Range: 20% to 80% RH (±5% accuracy)
  • LED Indication: Power status and data transmission flash
  • Interface: Single-wire digital output (no analog pins needed) [1, 2, 3, 4, 5]

Pin Connections

  • VCC: Connect to Arduino 5V or 3.3V
  • GND: Connect to Arduino GND (Ground)
  • DATA / OUT: Connect to any digital pin on your Arduino (e.g., Pin 2) [1, 2, 3, 4]

Basic Arduino Code Setup

  • Install the DHT sensor library by Adafruit via the Arduino IDE Library Manager.
  • Use this sample code structure to read data: [1, 2]
cpp
#include <DHT.h>
#define DHTPIN 2     // Digital pin connected to the DHT data pin
#define DHTTYPE DHT11   // Defining sensor type as DHT11

DHT dht(DHTPIN, DHTTYPE);

void setup() {
  Serial.begin(9600);
  dht.begin();
}

void loop() {
  delay(2000); // Wait 2 seconds between measurements
  float h = dht.readHumidity();
  float t = dht.readTemperature(); // Celsius
  
  if (isnan(h) || isnan(t)) {
    Serial.println("Failed to read from DHT sensor!");
    return;
  }
  
  Serial.print("Humidity: ");
  Serial.print(h);
  Serial.print("%  Temperature: ");
  Serial.print(t);
  Serial.println("°C");
}
Use code with caution.
If you need help, tell me:
  • Are you trying to add an extra external LED that turns on at a certain temperature?
  • Are you having trouble with reading errors or wire setup?