Turning LED off quickly after motion sensor trigger.

I'm just not sure how to get around that

See first sentence in paragraph 3 of reply #1. Your code is now doing the second sentence of that paragraph.