Temperature spikes high and low

My temperatur sensor occasionally spikes really high or low which is affecting my mini graph card.
image image

Can i in some way make a template or something else to remove these spikes?

Have you looked at the statistics component
Using the average might do the trick

As mentioned the statistics component is great, and the filter component might suit too - especially the outlier filter: