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

#include <Ticker.h>
#include <DHT.h>

#define DALLAS_PIN                         2
#define DHT_PIN                            4
#define DHT_TYPE                       DHT22
#define FURTILIZER_PIN                    15
#define FURTILIZER_TIME                  1.3
#define HEATER_PIN                        13
#define HEATER_DELTA                     0.5 
#define WHITE_LED_PIN                     12
#define BLUE_LED_PIN                      14
#define SSID                     "XXX"
#define SSID_PASSWD   "XXX"
#define MQTT_SERVER                 "cortex"
#define MQTT_CLIENT                   "tank"

WiFiClient                        espClient;
PubSubClient                mqtt(espClient);

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