It has been a long time since i looked at any of this code.
A few forum search shows the original code and also some more variations with modifications. I dont remember if i added the auto off or someone else did.
If you are using the code noted in the below post it looks like the auto off is hardcoded for 12 seconds with no input option to change it.
It shouldnt be too hard for someone to add an input if sondesired.