added interaction with LED and potentiometer, as suggested in the comments