       Serial.print("Average Temp: ");
       Serial.println(minuteAverage);
 
-      publishAverage(minuteAverage);
-      publishTemp(temperature);
+      publishTemp("minute_average", "Average Temp: ", minuteAverage);
+      publishTemp("temperature", "Temp: ", temperature);
     } else {
       Serial.println("No Sensors to Read");
     }

  }
}

void publishTemp(float temp) {
  char publishString[20];
  
  snprintf(publishString, 20,"%.4f", temp);
  Particle.publish("temperature", publishString);
  Serial.print("Temp: ");
  Serial.println(publishString);
}

void publishAverage(float temp) {
  char publishString[20];
  
  snprintf(publishString, 20,"%.4f", temp);
  Particle.publish("minute_average", publishString);
  Serial.print("Average: ");
  Serial.println(publishString);
}

void publishOutdoor(float temp) {
  char publishString[20];
  
  snprintf(publishString, 20,"%.4f", temp);
  Particle.publish("outdoor_temp", publishString);
  Serial.print("Outdoor: ");
  Serial.println(publishString);
}


  
  if (tempStr != NULL) {
    outdoorTemp = tempStr.toFloat();
    publishTemp("outdoor_temp", "Outdoor Temp: ", outdoorTemp);
  }
}

