 	} else if (status == MotionSensor::Idle) {
 		Serial.println(F("Sensor is in idle state."));
 		Serial.flush();
-		ledController.setState(LEDController::Green, LEDController::FlashVerySlow);
+		// If an alarm was played, let the LED flash red.
+		if (alarmPlayed) {
+			ledController.setState(LEDController::Red, LEDController::FlashVerySlow);
+		} else { 
+			ledController.setState(LEDController::Green, LEDController::FlashVerySlow);
+		}
 		logicState = IdleState; // Ready to observe.
 	} else if (status == MotionSensor::Alarm) {
 		Serial.println(F("Sensor alarm."));

MotionSensor motionSensor;


void setup() {
	// Set the initial state.
	logicState = WaitForSensor;

		signalError();
		return;
	}
		
	Serial.println(F("Success!"));
	Serial.flush();
}


/// Arduino loop method.
///
void loop() {
	// Get the current time for this loop iteration.
	const unsigned long currentTime = millis();
