Temperature alert

See Design Patterns: Generic Is Alive. You should be able to adapt that to your use case. It will require a little more code because you don’t just care that you’ve received any old update, you want to see that the update is higher than the last one. So you need some if statements in there to determine whether to reset the timer or generate the alert.