PIR sensor will have potentiometer to adjust the time delay after sensing and the time of output pulse. so you can use interrupt to read the low to high pulse from the PIR sensor and so can control the motor. refer this link to get idea about PIR sensor.