i have made a script, which measures the outside humidity and inside humidity. when the inside hum. is greater than outside more than 20%, it sends a message.
The problem is, when it is on the border - 19 and 20%, the message is send every time, when the condition applies. How can I make some hysteresis, or better, that the message is sent only once (a day?) and not 20-times in 5 minutes?

thank you,
Michal