   delay(2000);
 
   // PIR
-  attachInterrupt(0, PIRCHECKING, CHANGE);
+  if ( digitalRead(PIR_IN_PIN) == 0 ) {
+    attachInterrupt(0, PIRCHECKING, CHANGE);
+  } else {
+    attachInterrupt(0, remove_poweron_error, FALLING);
+  }
 
   // read pin status
   setUpStatus   = digitalRead(SETUP_IN_PIN);

    {
      switch (onoff) {
        case 1:
          if ( tvPowerStatus == 0 )
          {
            irsend.sendNEC(tv_onoff, 32);


  digitalWrite(SETUP_IN_PIN, HIGH);
  digitalWrite(WRK_MODE_IN_PIN, HIGH);

  pinMode(PIR_IN_PIN, INPUT);

  // buzzer
  pinMode(BZ_OU_PIN, OUTPUT);
