 int heat = D1;
 int cold = D2;
 //TESTING_HACK
-int fanTesting;
+int fanOutput;
 int heatTesting;
 int coldTesting;
 

  // int fan = D0;
  // int heat = D1;
  // int cold = D2;
  return coldTesting*4 + heatTesting*2 + fanTesting*1;
}

/*******************************************************************************

  }
}
void heatingExitFunction(){
  Particle.publish(APP_NAME, "heatingExitFunction", 60, PRIVATE);
  Particle.publish(PUSHBULLET_NOTIF, "Heat off", 60, PRIVATE);
  myDigitalWrite(fan, HIGH);
  myDigitalWrite(heat, LOW);
  myDigitalWrite(cold, LOW);
}

void endOfCycleEnterFunction(){
  Particle.publish(APP_NAME, "endOfCycleEnterFunction", 60, PRIVATE);
  myDigitalWrite(fan, HIGH);
  myDigitalWrite(heat, LOW);
  myDigitalWrite(cold, LOW);

  //start the timer of this cycle
  endOfCycleTimer = 0;
}
void endOfCycleUpdateFunction(){
  //time is up?
  if (endOfCycleTimer > END_OF_CYCLE_TIMEOUT) {
    thermostatStateMachine.transitionTo(idleState);
  }
}
void endOfCycleExitFunction(){
  Particle.publish(APP_NAME, "endOfCycleExitFunction", 60, PRIVATE);
}


