 
     if(inViolationForExactDuration(lowThreshExceededCounter, numLowTempViolations)) {
       Serial.println(" lowTempViolation");
-      publishViolationEvent(numLowTempViolations, "lowTempViolation");
+      publishTempEvent("lowTempViolation", fahrenheitTemp);
+      Particle.publish("fahrenheitTempLog", "lowTempViolation");
       lowThreshExceededCounter = 0; // now reset notification sequence
     }
   }
   else {
     lowThreshExceededCounter = 0;
   }
-}
-
-float getCelsiusTemp() {
-  return celsiusTemp;
 }
 
 void loop(void) {

int numHighTempViolations_level2 = msfiveMinutes/msTotalDelayInterval;
int numHighTempViolations_level3 = msOneHour/msTotalDelayInterval;

double fahrenheitTemp = 0.0;
float celsiusTemp;
char publishString[40];

void setup() {
  Serial.begin(9600);

  return counter == numAllowedViolations;
}

void publishTempEvent(char* eventName, double fahrenheitTemp) {
  sprintf(publishString,"%.2f", fahrenheitTemp);
  Particle.publish(eventName, publishString);
}
