A light emitting device comprising: a package body; an insulating layer on a surface of the package body; first and second electrode layers (124, 125) on the insulating layer, the first and second electrode layers (124, 125) being spaced apart from each other; a light emitting diode disposed on the package body and electrically connected to the first and second electrode layers (124, 125); characterized in that it comprises further: a resistor layer connected to the first electrode layer; a first element part in a first doping region within the package body, the first element part being connected to the resistor layer to output a power source inputted from the resistor layer; a second element part in a second doping region within the package body, the second element part being connected to the light emitting diode to output the power source inputted from the resistor layer; and a third electrode layer connected to the first element part and the second element part, the third electrode layer having in operation an electric potential less than those of the first electrode layer and the second electrode layer, wherein the resistor layer is connected to the first element part and the second element part, wherein the second element part is connected to the first element part and the second electrode layer, and wherein the resistor layer is spaced apart from the second electrode layer and the third electrode layer. a package body; an insulating layer on a surface of the package body; first and second electrode layers (124, 125) on the insulating layer, the first and second electrode layers (124, 125) being spaced apart from each other; a light emitting diode disposed on the package body and electrically connected to the first and second electrode layers (124, 125); characterized in that it comprises further: a resistor layer connected to the first electrode layer; a first element part in a first doping region within the package body, the first element part being connected to the resistor layer to output a power source inputted from the resistor layer; a second element part in a second doping region within the package body, the second element part being connected to the light emitting diode to output the power source inputted from the resistor layer; and a third electrode layer connected to the first element part and the second element part, the third electrode layer having in operation an electric potential less than those of the first electrode layer and the second electrode layer, wherein the resistor layer is connected to the first element part and the second element part, wherein the second element part is connected to the first element part and the second electrode layer, and wherein the resistor layer is spaced apart from the second electrode layer and the third electrode layer. a resistor layer connected to the first electrode layer; a first element part in a first doping region within the package body, the first element part being connected to the resistor layer to output a power source inputted from the resistor layer; a second element part in a second doping region within the package body, the second element part being connected to the light emitting diode to output the power source inputted from the resistor layer; and a third electrode layer connected to the first element part and the second element part, the third electrode layer having in operation an electric potential less than those of the first electrode layer and the second electrode layer, wherein the resistor layer is connected to the first element part and the second element part, wherein the second element part is connected to the first element part and the second electrode layer, and wherein the resistor layer is spaced apart from the second electrode layer and the third electrode layer.