You have a range finder. You have steppers that move a precise amount for each step. Calculate or measure how far the robot travels for 1 step. Use the rangefinder to measure the distance to the wall. Steps to wall = distance to wall / distance per step.