help micro elevator code

If you don't need to know the distance, then why do you care about how many pulses the hall sensor does ? Why not just watching the floor switches ?