This is a simplistic implementation of an elevator state machine. It is possible to cause the elevator to switch directions mid-floor by pressing another button.
This project is part of the Project LEAPES summer camp.