       delay(100);
     }
   }
+  delay(100);
 }
 
 void displaytimeleft(float a) {

    displayTemperature();
    tempMills = millis();

    if ( (millis() - o_tempMills) >= 600000 ) {
      Serial.println("o_tempCinside called");
      o_tempCinside = c_tempCinside;

  if ((millis() - tv_on_Mills) >= ( o_tvOffTime * 60 * 1000 ) && (timerOnOff == 1) && ( o_pirOnOff != 1)) {
    Serial.println("Timer on called");
    turn_onoff_tv(0);
  }

  if (t != o_t) {
