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?
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