fixed main example so that the trigger is reset after 1.5 seconds. Now you can change the light or sound levels multiple times and it will regisiter.