     //Leave the red light on while we're armed
     turnOffAllLEDs();
     digitalWrite(ARMED_LED_PIN, HIGH);
-
+    
+    //Make sure we wait for debouncing.
+    if (now > (timerStart + BUTTON_DEBOUNCE))
+    {
     //If there's a rising edge on the sensor pin
     if (sensorRising)
     {

  }
  
  Serial.println("Warming up...");
  timerStart = millis();

  currentState = S_WARMING_UP;
  buttonThen = 0;

/////////////////////////////////////////////


#define TICKS_PER_MS 7
#define TICKS_PER_SEC 6900

//These are on the "analog" arduino ports
#define BUTTON_PIN   A0 //Port C0
#define BLENDER_PIN  A1 //Port C1
