I am trying to run a program where if (say) humidity above 55, sound the buzzer/speaker.
However, it’ll continuously go buzz-buzz-buzz.
I want to do it
- 5 times, not more.
- Stop buzzing for (say) 15 min.
- If still low - repeat 1 above.
Counter doesn’t work as works off yes/no events whereas in case of these sensors it’s continuous updates.
How can this be accomplished?