help micro elevator code

i suck so much

I think you just need to take some time to review the C syntax and the Arduino API (arduino.cc => Reference).

About the hall sensor... You need to know when the elevator reached a particular floor. Isn't the floor switch enough ?