u can use limit switches. its very easy to interface with any micro controller also as they are just switches.
they can give either high or low output when switch is pressed by any object like elevator.
u can use stepper motor or DC gear motor of very low RPM.
to open or close elevator door u can use servo motors