Comandi per due servo e un sensore di movimento

Hi, I anticipate that there are already very experienced. I am 14 years old and I wanted to do a project, a gate (in miniature) that when you want to open you need only to activate the motion sensor. I would need the code for the two servo (which must be open to 90 degrees) and the motion sensor that when he finds something that moves the gate opens, it does hold open for 10 seconds and then closes. If you can give me also the connections to make me do you a favor. Thanks in advance.

Salve, vi anticipo già che non sono molto esperto. Ho 14 anni e volevo fare un progetto, di un cancello (in miniatura) che quando lo si vuole far aprire bisogna solamente far attivare il sensore di movimento. Mi servirebbe il codice per i due servo ( che si devono aprire di 90 gradi ) e per il sensore di movimento che quando trova qualcosa che si muove apre il cancello, lo fa tenere aperto per 10 secondi e poi si richiude. Se riuscite a darmi anche i collegamenti da fare mi fate un favore. Grazie in anticipo.

Servo gateServo;

gateServo.attach(somePin);

gateServo.write(90);
delay(10000);
gateServo.write(0);

Reading the PIR sensor is not much more difficult. Exactly how, though, depends, on which PIR sensor you have.