Average last 3 readings

Does anyone know if there is a way to take the last three readings from a temperature sensor to display?

Basically, I have a sensor that gives a slight plip in the readings every so often, only about 0.5-1°C but it would be great if I could smoothe that out for graphs etc.

its is an MQTT sensor

Many thanks in advance

1 Like

Thats perfect, thank you