 
 RtcDS3231 Rtc;
 
+#define DEBUG_PRINT 0
+
 // wifi
 #ifdef __IS_MY_HOME
 #include "/usr/local/src/ap_setting.h"

WiFiClient wifiClient;
WiFiUDP udp;

float H  = 0 ;
float T1 = 0 ;
float T2 = 0 ;
float OT = 0 ;
float PW = 0 ;
float NW = 0 ;
int PIR = 0 ;
float dustDensity = 0;

float OLD_H  = 0 ;
float OLD_T1 = 0 ;
float OLD_T2 = 0 ;
float OLD_OT = 0 ;
float OLD_PW = 0 ;
float OLD_NW = 0 ;
int OLD_PIR = 0 ;
float OLD_dustDensity = 0 ;

int inuse = 0 ;

byte termometru[8] = //icon for termometer
{

    return;
  }

  float TEMP_H   = root["Humidity"];
  float TEMP_T1  = root["Temperature"];
  float TEMP_T2  = root["DS18B20"];
  float TEMP_OT  = root["OUTSIDE"];
  float TEMP_PW  = root["powerAvg"];
  float TEMP_NW  = root["NemoWeightAvg"];
  int TEMP_PIR   = root["DOORPIR"];

  if ( TEMP_H > 0 )
  {
    H   = root["Humidity"];
  }

  if ( TEMP_T1 > 0 )
  {
    T1  = root["Temperature"];
  }

  if (TEMP_T2 > 0 )
  {
    T2  = root["DS18B20"];
  }

  if ( TEMP_OT > 0 )
  {
    OT  = root["OUTSIDE"];
  }

  if ( TEMP_PW > 0 )
  {
    PW  = root["powerAvg"];
  }

  if ( TEMP_NW > 0 )
  {
    NW  = root["NemoWeightAvg"];
  }

  if ( TEMP_PIR )
  {
    PIR = root["DOORPIR"];
  }

}

