       }
   }
 
-  fahrenheitTemp = celsius * 1.8 + 32.0;
+  fahrenheitTemp = calcFahrenheitFromCelsius(celsius);//celsius * 1.8 + 32.0;
   Serial.print("Temp: ");
   Serial.print(celsius);
   Serial.print(" C, ");

    Particle.publish(eventName, publishString);
}

// up to here, it is the same as the address acanner
// we need a few more variables for this example


int msfiveMinutes = 300000;
int msOneHour = 3600000;

float lowFahrenheitThreshhold = -5.0;
int lowThreshExceededCounter = 0;
int numLowTempViolations = msfiveMinutes/msDelayInterval;

float highFahrenheitThreshhold1 = 25.0;
float highFahrenheitThreshhold2 = 30.0;
int highThreshExceededCounter = 0;

int numHighTempViolations_level1 = 2;
