winlinvip / SimpleDHT

Simple, Stable and Fast Arduino Temp & Humidity Sensors for DHT11 and DHT22. http://learn.adafruit.com/dht
MIT License
144 stars 61 forks source link

Problems using Arduino Uno #40

Closed micmader closed 2 years ago

micmader commented 4 years ago

I am using version 1.0.12 with Arduino Uno. I used the Example DHT11 files and needed to change setup to:

Serial.begin(9600);

Because Arduino Only support this. Using higher values results in crap charachters displayed on serial display. I obtain the following errors:

Sample DHT11... Read DHT11 failed, err=4112

Sample DHT11... Read DHT11 failed, err=3088

Sample DHT11... Read DHT11 failed, err=4112

Sample DHT11... Read DHT11 failed, err=3088

(removed the ===)

Is it possible that the sensor cannot be used on Arduino Uno? Or is it broken?

chiragchinvar commented 4 years ago

Make sure you have selected the correct sensor type in your #define statement ie if you are using sensor type 22 it should be #define DHTTYPE DHT22.