Switches and sensors for LED systems