if..else HELP

It stays on as long as the PIR reads HIGH. You might want to check how you have the PIR wired as to why it's taking so long to go back to LOW. Really, it looks like a hardware problem.