Servo Motor - Auto Door

Use an infrared (IR) proximity sensor to trigger the servo motor.

When the IR proximity sensor detects the presence of an object, set the servo heading to “open” (in this example, 15) Otherwise set the servo heading to “closed” (35).

https://code.gogoboard.org/#/program/2393647a-7947-49fa-b8b5-2ab13781a535