How to make the LED react on input

ignore this post, wrong topic