Have a look at the following thread with some tips how to improve the accuracy: What's the secret to tracking stairs accurately?