help micro elevator code

PeterH:

copachino:

  Floor++;  

Floor=Floor+2;
   Floor=Floor+3;

I doubt this will end up with the correct value in Floor. I haven't reviewed the whole sketch, but I'd expect to see Floor assigned to the value corresponding to the floor it has just reached (Floor = 3; etc) or incremented / decremented by one each time is passes a floor ( Floor++; Floor--; ).

the problem comes when the elvator moves more than one floor but i dont think thats a problem, still i can just use Floor= 2 directly instead or just increments o decrements