Dear all,
I would like to understand the following:
I have connected a DHT22 to pin 4 of the Arduino Uno using a 10k resistor as pull up.
I loaded the example (configuring pin 4) of the Adafruit library and it works good (GitHub - adafruit/DHT-sensor-library: Arduino library for DHT11, DHT22, etc Temperature & Humidity Sensors).
Now I have a breadbord arduino ATmega 328u-pu (arduino pro 3.3v, 8Mhz), I did the same connection and loaded the same examples. But it always read 0 for both temperature and humidity.
If, instead, I load the DHTLib ( Arduino Playground - DHTLib) it works fine..
Can anyone help me understand why one is not working and the other one does?
Thank you,
dk