     if(sensors.count() > 0) {
       sensors.read();
 
-      minuteAverage = sensors.minute_average;
-      temperature = sensors.temp;
+      minuteAverage = (double)sensors.minute_average;
+      temperature = (double)sensors.temp;
 
       Serial.print("Temp: ");
       Serial.println(temperature);

int led1 = D7;
int powertail = D5;

float temperature;
float minuteAverage;
float outdoorTemp;
double tempOnThreshold = 60.0;
double tempOffThreshold = 65.0;
int power = 0;

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