 float dustDensity ;
 int moisture ;
 
-float OLD_H  , OLD_T1 , OLD_T2 , OLD_OT , OLD_PW ;
-int OLD_NW , OLD_PIR  , OLD_HO  , OLD_HL  ;
-
-float OLD_dustDensity ;
-int OLD_x ;
-
 unsigned long startMills;
 unsigned long sentMills ;
 
 long lastReconnectAttempt = 0;
 
-byte termometru[8] =
-{
-  B00100,
-  B01010,
-  B01010,
-  B01110,
-  B01110,
-  B11111,
-  B11111,
-  B01110,
-};
-
-byte picatura[8] =
-{
-  B00100,
-  B00100,
-  B01010,
-  B01010,
-  B10001,
-  B10001,
-  B10001,
-  B01110,
-};
-
-byte dustDensityicon[8] =
-{
-  B11111,
-  B11111,
-  B11011,
-  B10001,
-  B10001,
-  B11011,
-  B11111,
-  B11111,
-};
-
-byte dustDensityfill[8] =
-{
-  B11111,
-  B11111,
-  B11111,
-  B11111,
-  B11111,
-  B11111,
-  B11111,
-  B11111,
-};
-
-byte pirfill[8] =
-{
-  B00111,
-  B00111,
-  B00111,
-  B00111,
-  B00111,
-  B00111,
-  B00111,
-  B00111,
-};
-
-byte powericon[8] =
-{
-  B11111,
-  B11011,
-  B10001,
-  B11011,
-  B11111,
-  B11000,
-  B11000,
-  B11000,
-};
-
-byte nemoicon[8] =
-{
-  B11011,
-  B11011,
-  B00100,
-  B11111,
-  B10101,
-  B11111,
-  B01010,
-  B11011,
-};
+byte termometru[8]      = { B00100, B01010, B01010, B01110, B01110, B11111, B11111, B01110, };
+byte picatura[8]        = { B00100, B00100, B01010, B01010, B10001, B10001, B10001, B01110, };
+byte dustDensityicon[8] = { B11111, B11111, B11011, B10001, B10001, B11011, B11111, B11111, };
+byte dustDensityfill[8] = { B11111, B11111, B11111, B11111, B11111, B11111, B11111, B11111, };
+byte pirfill[8]         = { B00111, B00111, B00111, B00111, B00111, B00111, B00111, B00111, };
+byte powericon[8]       = { B11111, B11011, B10001, B11011, B11111, B11000, B11000, B11000, };
+byte nemoicon[8]        = { B11011, B11011, B00100, B11111, B10101, B11111, B01010, B11011, };
 
 void callback(char* intopic, byte* inpayload, unsigned int length)
 {

          requestSharp();
          HO = unihost + rsphost;
          HL = unitot + rsptot;
        }
      }

      if ( sleepmode != o_sleepmode )
      {
        displaysleepmode(sleepmode);
        o_sleepmode = sleepmode;
      }

      if (( HO != OLD_HO ) || ( HL != OLD_HL))
      {
        displayHost(HO, HL);
        OLD_HO = HO;
        OLD_HL = HL;
      }

      if (( PW != OLD_PW ) && ( 0 <= PW < 10000 ))
      {
        displaypowerAvg(PW);
        OLD_PW = PW;
      }

      if ( NW != OLD_NW )
      {
        displayNemoWeight(NW);
        OLD_NW = NW;
      }

      if ( PIR != OLD_PIR )
      {
        displayPIR();
        OLD_PIR = PIR;
      }

      if ((T1 != OLD_T1 ) || (T2 != OLD_T2 ) || (OT != OLD_OT) || ( H != OLD_H ))
      {
        displayTemperature();
        OLD_T1 = T1;
        OLD_T2 = T2;
        OLD_OT = OT;
        OLD_H = H;
      }

      if ( dustDensity != OLD_dustDensity )
      {
        displaydustDensity();
        OLD_dustDensity = dustDensity ;
      }

      if (DEBUG_PRINT) {

    moisture = y;
  }

  if (( 1 < x ) && ( x < 1024 ))
  {
    float calcVoltage = x * (5.0 / 1024.0);
    if ( (0.17 * calcVoltage - 0.1) > 0 )
    {
      dustDensity = 0.17 * calcVoltage - 0.1;
    }
  }

