You may find that PIR sensors are not appropriate for this task. The cheap ones tend to have a dead period after switching off, to prevent retriggering by the electrical noise caused by switching the load.
How much time elapses between the sensor switching the load off and the next object coming into view ?
Maybe post a link ti the PIR sensor you are using.