 
 void PIRCHECKING()
 {
-  pirOnOff = digitalRead(PIR_IN_PIN);
-  Serial.println("PIR rising called");
+  if (( millis() - pir_Mills ) < 600 ) {
+    return;
+  } else {
+
+    pirOnOff = !digitalRead(PIR_IN_PIN);
+    Serial.println("PIR rising called");
+    pir_Mills = millis();
+  }
 }
 
 


  // Timer start
  temp_Mills = millis();

  // ir
  irrecv.enableIRIn();

        default:
          return;
          break;

      }
    }
  } else {
