 }
 
 void sendMessage(){  
+  snprintf(msg, sizeof(msg), "%ld", millis());
+  mqtt.publish("livingroom/tank/uptime", msg);
   msgString(watertemp);
   mqtt.publish("livingroom/tank/watertemp", msg);  
   msgString(airtemp + TEMP_DELTA);

  msgString(humidity);
  mqtt.publish("livingroom/tank/humidity", msg);      
  msgString(float(heaterON));
  mqtt.publish("livingroom/tank/heater", msg);      
}

void heaterCheck(){

}

void measure(){
  waterOK = digitalRead(WATER_LEVEL_PIN);
  
  dallas.requestTemperatures();
  
  float t = 0;
  
  t = dallas.getTempC(dallasAddress);
  if(t <= 40 && t >= 10){
    watertemp = t;  
  }else{
    mqtt.publish("livingroom/tank/error", "watertemp");        
  }

  t = dht.readTemperature();
  if(t <= 50 && t >= 5){
    airtemp = t;
  }else{
    mqtt.publish("livingroom/tank/error", "airtemp");            
  }

  t = dht.readHumidity();
  if(t <= 100 && t >= 10){
    humidity = t;
  }else{
    mqtt.publish("livingroom/tank/error", "humidity");                
  }
}

void msgString(float f){
