 
   currentState = S_WARMING_UP;
   buttonThen = 0;
+  sensorThen = 0;
 }
 
 

{
  now = millis();

  //Checked the state of the button.
  boolean buttonPushed = false;
  int buttonNow = digitalRead(BUTTON_PIN);
  if (buttonNow != buttonThen && buttonNow)
  {
    //Button pushed!
    buttonPushed = true;
  }

  buttonThen = buttonNow;


  //Act based on current state.
  switch (currentState)
  {


unsigned long now = 0;

int buttonThen;
int sensorThen;
boolean wasHigh = false;

///SETUP//////////////////////////////////////////////////////////////////
