Improve alarm detection and debouncing. Fix UDP processing bug.
Signed-off-by: denis-m-tyurin <denis.m.turin@gmail.com>