Tags: DHT11, Temperature, Humidity, , Sensor

DHT11 Temperature Humidity Sensor

  • 6.00 AED
    • Ex Tax:6.00 AED
    • Brands China
    • Product Code:
    • Availability: In Stock
    The DHT11 digital temperature and humidity sensor is a temperature and humidity composite sensor with a calibrated digital signal output. It uses dedicated digital module acquisition technology and temperature and humidity sensing technology to ensure high reliability and excellent long-term stabili..
    The DHT11 digital temperature and humidity sensor is a temperature and humidity composite sensor with a calibrated digital signal output. It uses dedicated digital module acquisition technology and temperature and humidity sensing technology to ensure high reliability and excellent long-term stability. The sensor consists of a resistive wet sensor and an NTC temperature sensor connected to a high-performance 8-bit microcontroller. Therefore, the product has the advantages of excellent quality, ultra-fast response, strong anti-interference ability and high-cost performance. Each DHT11 sensor is calibrated in an extremely accurate humidity calibration chamber. The calibration coefficients are stored in the OTP memory as a program, and these calibration coefficients are called internally during the processing of the detection signal. The single-wire serial interface makes system integration easy and fast. Ultra-small size, extremely low power consumption, and signal transmission distances of up to 20 meters make it the best choice for even the most demanding applications. The product is available in a 4-pin single-row lead package.
     
    Product Features:
    Relative humidity and temperature measurement
    All calibration, digital output
    Excellent long-term stability
    No extra parts required
    Extra long signal transmission distance
    Ultra low energy consumption
    4-pin mounting
    Completely interchangeable

    USING A DHT11 TO MEASURE TEMPERATURE AND HUMIDITY

    This example shows how to use a DHT11 sensor to measure temperature and humidity using the Adafruit library here.

    Hardware Required

    • Arduino Board
    • DHT11
    • M-F jumper wires

    Circuit

    To build the circuit, attach Vcc to +5V, GND to GND and Data to pin A1 (Analog 1).

     

    circuit-dht11.jpg

    Code

    // Example testing sketch for various DHT humidity/temperature sensors
    // Written by ladyada, public domain

    #include "DHT.h"

    #define DHTPIN 2     // what pin we're connected to

    // Uncomment whatever type you're using!
    //#define DHTTYPE DHT11   // DHT 11 
    #define DHTTYPE DHT22   // DHT 22  (AM2302)
    //#define DHTTYPE DHT21   // DHT 21 (AM2301)

    DHT dht(DHTPIN, DHTTYPE);

    void setup() {
      Serial.begin(9600);
      Serial.println("DHT test");

      dht.begin();
    }

    void loop() {
      // Reading temperature or humidity takes about 250 milliseconds!
      // Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
      float h = dht.readHumidity();
      float t = dht.readTemperature();

      // check if returns are valid, if they are NaN (not a number) then something went wrong!
      if (isnan(t) || isnan(h)) {
        Serial.println("Failed to read from DHT");
      } else {
        Serial.print("Humidity: ");
        Serial.print(h);
        Serial.print(" %\t");
        Serial.print("Temperature: ");
        Serial.print(t);
        Serial.println(" *C");
      }
    }

    There are no reviews for this product.

    Write a review

    Please login or register to review