...

The only solution for timer 1 to overflow every 5 sec is to run the CPU clock @ 400 khz ...

Depends on what you intend to do ...

but

Code:
IF I detect something

Do something .... for 5 sec

Wait for detect.
Generally is solved by sleep/ wake use of the µP ...

Alain