@gsl24, as @Premos wrote below, the sensor collects impulses from the magnets in the wheel and on this basis the electronics calculates when to stop the engine. Sensors are only a sensor and do not save any data about the number of steps, everything is saved on the power board. Therefore, after replacing the sensor, nothing will change, because the electronics will spin the engine according to the number of impulses stored in the memory.