Interfacing LEDs, switches, and sensors