 
 			break;
 
+		case SHOW_ALARM_MODE:
+			if (RTC.alarm(ALARM_0) | (RTC.alarm(ALARM_1)))
+				Serial.println("Alarm!");
+			else
+				oldFsmState = fsmState;
+				fsmState = SHOW_TIME_MODE;
+			break;
+
 		case ERROR_MODE:
 			if (oldFsmState != fsmState)
 			{	

#define EDIT_ALARM_MODE 1
#define SHOW_TIME_MODE  2
#define SHOW_TEMP_MODE  3
#define ERROR_MODE      4


#define SHOW_TIME_DURATION 7000
#define SHOW_TEMP_DURATION 3000

		fsmState = ERROR_MODE;
	}
	
	// default alarm settings, 08:30, disabled
	pinMode(ALARM_PIN, INPUT_PULLUP);
	setRtcAlarm(8,30);
	disableRtcAlarm();
