Garage door opener

I made a mistake, no one can help here.

What have you tried? This forum is for helping with your code, not writing it for you. If you want to hire a programmer, post over in the Gigs and Collaboration forum and spend some $$$

Who is asking to write code free, please?

OP's code, needs much work, I'm too busy now.

void setup() 
{
 Serial.begin(9600); // open the serial port at 9600 bps: 
 pinMode(7,OUTPUT);
 
 
const byte BTpin = 4;
  digitalWrite(7,HIGH);
   pinMode(BTpin, INPUT); 
   int start=0;
   int stop=200000; 
   nsr: boolean BTconnected = false;
    Serial.print(start);
    
   while(start<=stop){ 
while (!BTconnected)
    {
      if ( digitalRead(BTpin)==HIGH)  { BTconnected = true;};
    }

digitalWrite(7,LOW);
    delay(1000);
     digitalWrite(7,HIGH);
       delay(120000); // 10 seconds delay
 digitalWrite(7,LOW);
 delay(1000);
 digitalWrite(7,HIGH);
 BTconnected = false;
    delay(300000);
    
    goto nsr;

   }
    
}
   void loop()
 {
    
           
}

Hassan77:
Who is asking to write code free, please?

You are. You posted your existing code and the requirements for the changed code and nothing else. Make an attempt at changing the code to work they way you want and, if you get stuck, post that code, where the problem is, and people will help.