 
     lcd.setCursor(15, 1);
     lcd.print(abs(tempdiff), 1);
-    if ( n = 1) {
-            lcd.write(" ");
-    }
-
-  }
-
+    if ( length_tempdiff == 1) {
+      lcd.print(" ");
+    }
+  }
 
   lcd.setCursor(2, 2);
   if ( H >= 10 ) {
     lcd.print(H, 1);
   } else {
-    lcd.print(" ");      
-    lcd.print(H, 1);   
+    lcd.print(" ");
+    lcd.print(H, 1);
   }
 
 }

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

    return;
  }

  // topic
  // raspberrypi/doorpir
  // esp8266/arduino/s07 : power
  // esp8266/arduino/s04 : OUTSIDE
  // esp8266/arduino/s06 : Scale
  // esp8266/arduino/s02  : T, H

  if ( receivedtopic == "esp8266/arduino/s02" ) {
    H   = root["Humidity"];
    T1  = root["Temperature"];
    T2  = root["DS18B20"];
  }

  if ( receivedtopic == "esp8266/arduino/s04" ) {
    OT  = root["OUTSIDE"];
  }
