Thank you PaulS for the good tips.
I'll also do not need anymore the LEDs to show me the value of the potentiometer (these will be replaced with sensors).
What lines I can remove from the code?
Is there a code, so that the Arduino understand that the stepper motor has reach it's end (not moving anymore)?
Or do I need a limit switch or to measure the current to the motor?