Ads

Selasa, 23 Oktober 2018

Measure temperature and humidity with Arduino DHT11


Welcome to the erwinproject web, this time the erwinproject admin will share the arduino + DHT 11 code. DHT11 is a Temperature and Humidity sensor, it has a digital signal output which is calibrated with a complex temperature and humidity sensor. This technology ensures high reliability and excellent stability in the long run. The microcontroller is connected to a high performance of 8 bits. This sensor includes resistive elements and NTC temperature measuring devices. It has excellent quality, fast response, anti-interference capability and high cost performance advantages.
Each DHT11 sensor has a very accurate calibration feature from the calibration chamber humidity. The calibration coefficients are stored in OTP program memory, the internal sensor detects the signal in the process, we must call it the calibration coefficient. Integrated serial single-cable interface system to be fast and easy. Small size, low power, signal transmission distance of up to 20 meters, so that various applications and even the most demanding applications. This product is a single 4-pin pin package line. Convenient connection, special packages can be provided according to user needs.

Spesification : 
  • Supply Voltage: 5 V
  • Temperature range: 0-50 ° C error ± 2 ° C
  • Humidity: 20-90% RH ± 5% RH error
  • Interface: Digital

download this library "here"

#include<dht.h>
dht DHT;

// if you require to change the pin number, Edit the pin with your arduino pin.

#define DHT11_PIN A1 

void setup() {

  Serial.begin(9600);

  Serial.println("welcome to TechPonder Humidity and temperature Detector");
}

void loop() { // READ DATA

  int chk = DHT.read11(DHT11_PIN);

  Serial.println(" Humidity " );

  Serial.println(DHT.humidity, 1);

  Serial.println(" Temparature ");

  Serial.println(DHT.temperature, 1);

  delay(2000);

}
So, a tutorial from Erwin Project about Arduino DH11 Thanks for reading.

Tag :
  • Arduino DHT
  • Arudino Coding

    Choose :
  • OR
  • To comment
Tidak ada komentar:
Write komentar