judging from your post you forgot to include a configurable timer that stops the led in case it is unattended