 float                         watertemp = 0;
 float                           airtemp = 0;
 float                          humidity = 0;
-uint8_t                        settemp = 23;
+float                        settemp = 23.0;
 bool                       heaterON = false;
 
 void setup() {

  mqttConnector();
  delay(100);
  dallas.begin();
  dallas.setWaitForConversion(true);
  dallas.getAddress(dallasAddress, 0);
  dallas.setResolution(dallasAddress, TEMP_12_BIT);
  dallas.setResolution(TEMP_12_BIT);

void msgString(float f){
  uint8_t h = floor(f); 
  uint8_t l = (f - h) * pow(10, 2);
  snprintf (msg, sizeof(msg), "%d.%02d", h, l);      
}

void sendMessage(){  
  msgString(watertemp);
  mqtt.publish("livingroom/tank/watertemp", msg);  
  msgString(airtemp + TEMP_DELTA);
  mqtt.publish("livingroom/tank/airtemp", msg);  
  msgString(humidity);
  mqtt.publish("livingroom/tank/humidity", msg);      
