     lcd.setCursor(6, 1);
     lcd.print(" ");
   }
+
+  if ( tvPowerStatus == 1 && timerStatus == 1 ) {
+    tvOnTimer();
+    temp_Mills = millis();
+  }
+
 }
 
 // need to add timer reset, power status

{
  tempCinside = getdalastemp();
  displayTemperature(tempCinside);
  displaytimeleft();  
}

// update every 5 mins


  timeleft = (( o_tvOnTime * 1000 ) * 60 ) - (millis() - temp_Mills) ;

  // timeleft = ( millis() - temp_Mills) / 1000 ;

  String str_a = String(int(timeleft));
  int length_a = str_a.length();

  lcd.setCursor(8, 1);
  if ( timerStatus == 1 &&  o_wrkMode == 1 && o_startMode == 1 && tvPowerStatus == 1) {
    for ( int i = 0; i < ( 7 - length_a ) ; i++ ) {
      lcd.print(" ");
    }
