Description
DHT11 is a digital temperature and humidity sensor. Output to a digital pin.
DHT11 sensor specifications:
– Works on: 5V.
– Temperature range: 0 – +50 ºC.
– Temperature accuracy: ±2,0 ºC.
– Humidity range: 20-95% RH.
– Humidity accuracy: ±5,0% RH.
– Response time: < 5 sec.
Arduino code example:
DHT library
#include <dht11.h>
dht11 DHT11;
#define DHT11PIN 2
void setup()
{
Serial.begin(115200);
Serial.println("DHT11 TEST PROGRAM ");
Serial.print("LIBRARY VERSION: ");
Serial.println(DHT11LIB_VERSION);
Serial.println();
}
void loop()
{
Serial.println("\n");
int chk = DHT11.read(DHT11PIN);
Serial.print("Read sensor: ");
switch (chk)
{
case DHTLIB_OK:
Serial.println("OK");
break;
case DHTLIB_ERROR_CHECKSUM:
Serial.println("Checksum error");
break;
case DHTLIB_ERROR_TIMEOUT:
Serial.println("Time out error");
break;
default:
Serial.println("Unknown error");
break;
}
Serial.print("Humidity (%): ");
Serial.println((float)DHT11.humidity, 2);
Serial.print("Temperature (°C): ");
Serial.println((float)DHT11.temperature, 2);
delay(2000);
}
Only logged in customers who have purchased this product may leave a review.
Shipping within the Netherlands
This product will be delivered via PostNL letter post in a bubble envelope.- €3.45 shipping costs for orders under €25.
- €2.95 shipping costs for orders between €25 - €45.
- Orders above € 45,- will be
free of charge sent by PostNL letter post.
Ordered before 16:30 PM on workdays, shipped the same day!
Click here for costs outside the Netherlands.
Electronics4Fun (verified owner) -
For most applications a good, low cost sensor to measure temperature and humidity via a digital input from your Arduino. For a very fast response time you need a much more expensive sensor.
M -
Reasonable sensor, but not very accurate. For a weather station, for example, I would rather go for the DHT22, also available in this webshop. When continuous power is applied to the sensor, this sensor indicates a lower humidity percentage during reading. I got much better results by applying power to the sensor just before reading, and then reading the sensor, and then immediately switching the power off again. Perhaps redundant to mention, but the VCC connection that you would normally connect to the 5 volt pin of the Arduino, I have now connected to a digital port so that I can easily switch the power on or off.