PIR sensor and DC motor

Sorry. I mean for loop. I looked at most the websites and tried to put them together. I only followed their schematic and steps for guidance but I am not that knowledgeable enough to answer your question yet.