How to modify the below code that the motor works (Turns on) for tamount of time

Hi

As I already informed, the problem of compiling is over and I could compile your latest code by deleting all lines except the first delay line and the program now works well without testing procedure.

So, the thing I am now looking for is knowing how I can add or remove the log printing by modifying the code, you know that I tried to do it by adding // in front of the lines but seems this is better you let me know if possible which lines are the one that is printed in IDE serial monitor after entering 1 or 2.

Sorry for bothering you much.

I learned a lot from you and hope this can be also the last one I learn from you

Regards