Use ultrasonic sensors and a windshieldwiper motor to automatically open and close a door. Instructions https://www.instructables.com/id/Make-a-Automatic-Self-Sensing-Opening-and-Closing-/ Schematic: ToDo's Add safety feature so that the door does not slam into a person when a person walks trough the door.