Triggering led when the an input is read