help with coding for a stepper motor

Back in post #4 you include the PIR sensor.

I would think Robin2 does not want to write the code for you. What would you learn then?