A light-emitting diode (LED) is a semiconductor device. You can see it as an electronic device that permits current to flow in One direction. And it illuminates when electricity passes through it.