[00:18:07][W][dht:177]: Requesting data from DHT failed!
[00:18:07][W][dht:061]: Invalid readings! Please check your wiring (pull-up resistor, pin number) and consider manually specifying the DHT model using the model option.
[00:18:07][D][sensor:093]: 'Shed Temp': Sending state nan °C with 1 decimals of accuracy
[00:18:07][D][sensor:093]: 'Shed Humidity': Sending state nan % with 0 decimals of accuracy
I’ve done a few things to no avail.
-changed the pin from D4 to GPIO2
-added the model number to the code
-changed the baud rate
-tried a different DHT22 sensor
Still get the same error. Here is the DHT22 portion of the .yaml file
Buy the sensor already on a PCB, these have the sensor on the board. But worth buying a bunch of 4k7 or 10 k resistors off eBay or aliexpress just in case though…
Your wiring looks very good to me. To take out any doubts, try with D1 or 2/5/6/7, D4 has onboard LED connected to (shouldn’t affect normally though) and generally you should avoid using strapping pins if you have clean ones available.