Average over last 10 readings

Easy enough, a kind of ring buffer and just sum it up when necessary.
Nicer moving average