   int length_Temperature = str_Temperature.length();
 
   for ( int i = 0; i < ( 3 - length_Temperature ) ; i++ ) {
-      lcd.write(" ");
+    lcd.print(" ");
   }
   lcd.print(Temperature, 1);
 }


    lcd.setCursor(15, 1);
    lcd.print(abs(tempdiff), 1);
    if ( n = 1) {
            lcd.write(" ");
    }

  }


  lcd.setCursor(2, 2);
  if ( H >= 10 ) {
    lcd.print(H, 1);
  } else {
    lcd.print(" ");      
    lcd.print(H, 1);   
  }

}

  if ( PIR == 1)
  {
    for ( int i = 0 ; i <= 3 ; i ++ ) {
      lcd.setCursor(19, i);
      lcd.write(5);
    }
  } else {
    for ( int l = 0 ; l <= 3 ; l ++ ) {
      lcd.setCursor(19, l);
      lcd.print(" ");
    }
  }
}

