add threshold/background for led functions to set a minimum brightness