door with servo motor

I need help with programming two servo motors, an IR led and an IR pickup. The first is triggered by a pressure switch, which opens up to 90 degrees and only goes down after a certain time. The second servo motor is also actuated by a push button, but it must only lower when the vehicle is no longer detected after a certain time, where it is detected by an IR. Thank you.

Receiver = 38kHz

Start by studying the examples that come with the Arduino IDE. Most of what you need will be covered.

What do you mean by "IR pickup"?

...R

I wanted to say receiver, sorry! . Already tried with the examples of the Arduino IDE, but I could not do the programming.

Does that mean an IR photo transistor (2 leads) or an IR detector/decoder (3 leads). Part number?

It is TSOP58338

datasheet.pdf (141 KB)

AleFASantos: Already tried with the examples of the Arduino IDE, but I could not do the programming.

If you want someone to write a program for you please ask in the Gigs and Collaborations section of the Forum and be prepared to pay.

...R