BTS7960 H-Bridge

I am making my first project with Arduino and I want to close and open the door of my chicken scoop with the Arduino. Instead of relais I thought I could use the BTS7960 for this project. But I keep on struggling and cannot find the solution. I just need the 12V for about 15 seconds to open the door and 15 seconds to close it. Is this possible with this H-Bridge or am I completely wrong?

Without knowing the specifications of the motor, how can we say? What is the stall current of the motor?

I don't know exactly what you mean, but I think all these specifications are mentioned in the datasheet with the following link :https://media.s-bol.com/N8D754MKDDBp/original.pdf

Post the datasheet for the actuator you will use to open and close the door.

That has no data on the motor.

/*........................
BTS7960 Motor Driver
*/
int RPWM=5;
int LPWM=6;
// timer 0
int L_EN=7;
int R_EN=8;

void setup() {
  for(int i=5;i<9;i++){
   pinMode(i,OUTPUT);
  }
   for(int i=5;i<9;i++){
   digitalWrite(i,LOW);
  }
   delay(1000);
  }

void loop() {
  digitalWrite(R_EN,HIGH);
  digitalWrite(L_EN,HIGH);
  
  delay(1000);
  analogWrite(LPWM,10);
  
  delay(10000);

  digitalWrite(R_EN,LOW);
  digitalWrite(L_EN,LOW);
  analogWrite(RPWM,10);

  delay(10000);
}

To address your exact question from the first post…

You neeed the 12V supply present every time you’re planning to drive the motor.
You can turn that supply on or off whenever you are planning to use it.

I suspect your question is more complicated, but this a good chance to learn.

I have the 12V supply constant present, but I don't know exactly how to make the engine turn to clockwise or counterclockwise with the code. With the code I wrote the engine only went clockwise and stopped after doing that.

Here is a tutorial on using the BTS7960 motor driver with Arduino. It has connection diagram and example code. There are more available with a search for "bts7960 arduino tutorial".