This is a project I helped by coding for some friends of mine from my former school. We created that to a thecnology week to demonstrate what we were doing on the eletronics course.
My friends were in charge of doing eletric/eletronic part of the project, and I created the code that you can see on the .ino
file.
The operation is simple, you only need to click on a button to select a floor and, when the elevator reach the selected floor, you'll be able to select another one, as a common elevator.