help with coding for a stepper motor

Photo-Tom:
at the moment i cant seem to figure out the code: if (PIR is detected)

What I wrote is not code - it is a description of what your code needs to do. AFAIK you already know how to detect a signal from your PIR.

...R