added LEDs processing in the main.
LEDR blinks when alarm state is triggered.
LED4 (green LED) always blinks.