 
 void measure(){
   waterOK = digitalRead(WATER_LEVEL_PIN);
-  
   dallas.requestTemperatures();
   
   float t = 0;


void setup() {
  Serial.begin(115200);
  pinMode(     LED_BUILTIN,     OUTPUT      );
  digitalWrite(LED_BUILTIN,     FALSE       );
  pinMode(     FURTILIZER_PIN,  OUTPUT      );
  digitalWrite(FURTILIZER_PIN,  TRUE        );
  pinMode(     HEATER_PIN,      OUTPUT      );
  digitalWrite(HEATER_PIN,      FALSE       );
  analogWrite( WHITE_LED_PIN,   PWMRANGE    );
  analogWrite( BLUE_LED_PIN,    PWMRANGE    );
  pinMode(     WATER_LEVEL_PIN, INPUT       ); //Pullup in hardware
  setup_wifi();
  delay(100);
  mqtt.setServer(MQTT_SERVER, 1883);

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

#define USER_PIN                             D0
#define NIX_PIN                              D1
#define DHT_PIN                              D2
#define WATER_LEVEL_PIN                      D3
#define DALLAS_PIN                           D4
#define BLUE_LED_PIN                         D5
#define WHITE_LED_PIN                        D6
#define HEATER_PIN                           D7
#define FURTILIZER_PIN                       D8
#define DHT_TYPE                          DHT22
#define FURTILIZER_TIME                     1.3
#define HEATER_DELTA                        0.0 
#define SSID                        "xxx"
#define SSID_PASSWD      "xxx"
#define MQTT_SERVER                    "cortex"
#define MQTT_CLIENT                "TankClient"
#define TEMP_CAL                          23.00
