Choppy graphs from DHT11

Hello everyone!

So i have a small issue that is driving me crazy,
The readings from my DHT11 sensor is way to choppy so what i want to do is change the value that’s graphed from absolute to avreagera, But due to my absolute noob skills when it comes to python I need a few pointers where to look in the HASS source and what do search for (when converting the value) and so on.

I want it to look like the YR (blue line) sensor reading


Wouldn’t it be easier to lower the polling rate somehow? It looks like you’re getting very frequent readings which will make it look “choppier”.