   printDigits(second());
 }
 
-void printDigitsnocolon(int digits) {
+void printDigitsnocolon(int digits) 
+{
   if (digits < 10)
     lcd.print('0');
   lcd.print(digits);
 }
 
 
-void printDigits(int digits) {
+void printDigits(int digits) 
+{
   // utility for digital clock display: prints preceding colon and leading 0
   lcd.print(":");
   if (digits < 10)

    lcd.setCursor(9, 3);
    lcd.print("*");
    lcd.print(dustDensity);
    lcd.print(" mg/m3");

    payload = "{\"dustDensity\":";
    payload += dustDensity;
    payload += "}";

    if ( dustDensity != olddustDensity ) {
      sendmqttMsg(payload);
      olddustDensity = dustDensity ;
    }

  }
}

void sendmqttMsg(String payload)


time_t prevDisplay = 0; // when the digital clock was displayed

void loop() 
{

  if (timeStatus() != timeNotSet) {
    if (now() != prevDisplay) { //update the display only if time has changed
      prevDisplay = now();
      digitalClockDisplay();
      requestSharp();
      checkDisplayValue();
    }
  }

