DHT20 always gives "Read Timeout"

As part of a Physics project, I am attempting to read the temperature and humidity of the air. I connected a DHT20 Humidity & Temperature Sensor to an Arduino UNO R4 WiFi via a breadboard. I am using Rob Tilllaart's DHT20 library.

However, when I run examples/DHT20/DHT20.ino, I only get "Read timeout". When I isConnected() it shows a 1, so the sensor itself works. I've tried both the analog and digital I2C pins, and both gave the error. What could be the cause of this, and how could I fix it?

Here's my board:

Show your sketch (text form, formatted). How fast are you reading the sensor? What address are you using? (0x38)

I'd say double check your wiring. Using the DHT20 example from the library you indicated, a DHT20 I tried out here worked just fine with an R4 WiFi. No modifications to the sketch, DHT20 connected straight to SDA and SCL, no extra pullups used.

/home/me/Documents/sketchbook/Uno_R4_Wifi/DHT20/DHT20.ino
DHT20 LIBRARY VERSION: 0.3.1


Type	Humidity (%)	Temp (°C)	Time (µs)	Status
DHT20 	37.4		25.1		39774		OK
DHT20 	38.2		25.1		39774		OK
DHT20 	38.8		25.1		39774		OK
DHT20 	39.2		25.1		39774		OK
DHT20 	39.5		25.1		39774		OK
DHT20 	39.4		25.0		39774		OK
DHT20 	39.3		25.0		39774		OK
DHT20 	39.3		25.0		39773		OK
DHT20 	39.0		25.0		39773		OK
DHT20 	38.7		25.0		39774		OK

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.