 {
   // int fan = D0;
   // int heat = D1;
-  // int cold = D2;
-  return coldOutput*4 + heatOutput*2 + fanOutput*1;
+  // int cool = D2;
+  return coolOutput*4 + heatOutput*2 + fanOutput*1;
 }
 
 /*******************************************************************************

    myDigitalWrite(fan, LOW);
  }
  myDigitalWrite(heat, LOW);
  myDigitalWrite(cold, LOW);

  //start the minimum timer of this cycle
  minimumIdleTimer = 0;

  //declare and init pins
  pinMode(fan, OUTPUT);
  pinMode(heat, OUTPUT);
  pinMode(cool, OUTPUT);
  myDigitalWrite(fan, LOW);
  myDigitalWrite(heat, LOW);
  myDigitalWrite(cool, LOW);

  //declare cloud variables
  //https://docs.particle.io/reference/firmware/photon/#particle-variable-
