     moisture = y;
   }
 
-  if (( 1 < x ) && ( x < 1024 ) && ( x != OLD_x ))
+  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;
-      OLD_x = x ;
     }
   }
 

    lcd.setCursor(16, 2);
    lcd.print(" ");
  }

}

void displaypowerAvg(float Power)


void digitalClockDisplay()
{
  // digital clock display of the time
  lcd.setCursor(0, 0);
  lcd.print(year());
