Esp8266 + DHT21

My HA shows wierd spikes in temp graph. I’m using esp8266 12E + am2301 which is DTH21. I did setup DTH.conf in Arduino IDE acordingly and still the same problem. Any help?

Thank You

Hi could you post how your graph looks like?

Humidity looks good and even. Maybe faulty sensor?

not so high spike in my point of view, with DHT21 I did a routine to average the measurement on another weather station that I did

Could you show how to do that routine?

I store the last 20 values receceived with a timestamp and each time a new value received is above or below the average of the last 20 ± a threshold I don’t publish it

but maybe just try a new sensor and it will be ok…

Ok. Thank you so much!