Old sensor values

Please excuse my bad English. I am new to Home Assistant.
I have six 1-wire sensors in the system.
How can I compare the current value of the sensor to a 5 minute old value?
Would the “template sensor” be the right way to do this?
I hope you understand what I was trying to ask :slight_smile:

I guess that you are looking for the trend sensor.

Thanks for the answer. Like I said I am new to Home Assistant :roll_eyes:
Could you give me an example of how this should be done? How can I compare the current value of the sensor to a 5 minute old value?