stepper motor feedback

You could either keep track of the motors position in software or use a sensor to give positional information (more reliable as the software could lose track).