The program was written to move the servo to were ever motion was detected and leave it there.
if you want to move the servo to a home position once no motion is detected you would need to change the loop that moves the servo on motion detection, so that if there is no motion the servo is driven to the required position.
So you would need to def a park function with the relevant p.ChangeDutyCycle line in it and any print line you wanted
then you need to change the 2,3,4 if's to elif and add an else: on the end to call the park function.
https://www.tutorialspoint.com/python/p ... f_else.htm