Receiving RF for status and on demand actions

You would be best served by creating a function that would be for checking the door status. Then, use the "blink with out delay" example to check status of the door at your interval that you choose.

Something similar to the small part of code below:

unsigned long currentMillis = millis();
 
  if(currentMillis - previousMillis > interval) {
    // save the last time you blinked the LED 
    previousMillis = currentMillis;   
  
  // some function to check door status
  
  }