Hi
I'm trying a simple test of DHT11 and I have 4 different DHT11 all of them are way off by humidity.
I have put them in a sealed container for 48 hours with a NaCl with a SHT15 and an analog hygrometer.
The SHT show 78% and the analog meter shows 76% but all of my DHTs shows around 53%. Temperature are all 20-21 C.
I know the DHT11 has a +-5%RH but this is way off. I have also tried different libraries with the same readings.
The DHT is directly in the headers with a 5k6 pullup.
Is this normal? or should I just add 22 to my readings? that sounds wrong.
Thanks
The current library is this Arduino Playground - DHT11Lib
#include <DHT11.h>
dht11 DHT11;
#define DHT11PIN A1
#define DHT11pwrPin A0
void setup()
{
pinMode(DHT11pwrPin, OUTPUT);
digitalWrite(DHT11pwrPin,HIGH);
Serial.begin(9600);
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);
}