PIR sensor with timer, first time and need help

You'll need to get rid of the delays and use millis instead. Take a look at the blink without delay example to see millis in use. For your code, whenever the PIR is high, store millis in a variable and turn the LED on. Independently, check that variable against millis to see whether five seconds have passed and if so, turn the LED off.