human
Why does a LED light up when you connect it to a battery?
assistant
A LED is a light emitting diode. When you connect a battery to a LED, electrons flow through the LED, and the electrons are excited and emit light. The light is emitted in a specific direction, and the color of the light depends on the material used to make the LED.