 int tvPowerStatus;
 
 // Timer status
-int timerStatus = 0 ;
+int timerStatus = 0;
 
 // tv IR code
 unsigned long tv_input = 0x20DFD02F;

  delay(2000);

  // PIR
  attachInterrupt(0, PIRCHECKING, CHANGE);

  // read pin status
  setUpStatus   = digitalRead(SETUP_IN_PIN);

    return;
  } else {

    pirOnOff = digitalRead(PIR_IN_PIN);
    Serial.println("PIRp called");
    pir_Mills = millis();
  }
}
    
void tvOnTimer()
{
  t.stop(tvIsOffEvent);
  tvIsOnEvent = t.every(o_tvOnTime * 1000 * 60 , doTvOffTimer);
}

void tvOffTimer()
{
  t.stop(tvIsOnEvent);
  tvIsOffEvent = t.every(o_tvOffTime * 1000 * 60 , doTvOnTimer);
}

void doTvOffTimer()
