Esp32 s2 dht22 wrong readings, works after reset

have som issue whit esp32 s2, and dht22
on cold start i do get wrong readings
typical a few degrees c och low rf
efter reset och uppdate it gives the right readings

standard

  • platform: dht
    pin: GPIO1
    temperature:
    name: “Temp rf”
    humidity:
    name: “rf”
    update_interval: 10s

have tryed it on several esp32, and diffrent batches om dht22

any help of what this be?

Gpio1 is not “normal” pin, it’s uart TX pin, debug output at boot. Try with Gpio4 for example.

Also try adding the model to the config. Sometimes auto detection is a bit flaky.

  model: DHT22 # or DHT22_TYPE2

thanks, autodetect was the problem, model it all ok
did change pin to, but it wasent that, but i should not be using that anyway