I would set the ‘blind’-time of the motion sensor to 30 seconds.
And make the flow with two timers like this:
Let ‘spot 1’ be your lights and ‘spot 2’ your fan.
The motionsensor can detect new movements after 30 seconds and will restart the timer of 5 minutes. So 5 minutes after the last movement the lights turn off and the timer ‘keep fan running’ starts. New movement will stop timer ‘keep fan running’.
