 
     Serial.println("## Evaluating Power");
 
-    if(minuteAverage > tempThreshold) {
+    if(minuteAverage > tempOffThreshold) {
       turnOffPower();
-    } else {
+    } else if(minuteAverage < tempOnThreshold) {
       turnOnPower();
     }
   }

  Particle.variable("power", power);
  Particle.variable("temperature", temperature);
  Particle.variable("min_average", minuteAverage);
  Particle.variable("threshold", tempThreshold);
  Particle.function("power", adjustPower);
  publishPowerStatus();


float temperature;
float minuteAverage;
float outdoorTemp;
double tempOnThreshold = 62.0;
double tempOffThreshold = 68.0;
bool power = false;
boolean ledState = LOW;

