An other way- relatively new is use smart stepper motors driver;-
Smart stepper motors driver (IC) has stall detection to detect
'home' position and keep track of forward and backward steps to know where you should be. Missed steps, or someone/something manually turning the shaft will break this method.
.