An electrical plug (1, 1a), detachably coupled to a socket of a load, the electrical plug (1, 1a) comprising: a casing; a plurality of contact pins disposed on the casing and configured to plug into the socket so as to provide an input power required by the socket; a power cable connected with the plurality of contact pins and configured to transmit the input power to the load through the socket when the electrical plug (1, 1a) is coupled to the socket and the electrical plug (1, 1a) is in a normal state; a circuit board disposed in the casing; characterized by a first temperature detection element disposed on the circuit board and adjacent to the plurality of contact pins, wherein the first temperature detection element is configured to detect a temperature of the plurality of contact pins and output a first detection signal, wherein a temperature variation of the plurality of contact pins is correlated with an impedance variation of the first temperature detection element, and the first detection signal reflects the impedance variation of the first temperature detection element; a verification resistor disposed on the circuit board and having an impedance value according to the type of the electrical plug (1, 1a), so that the type of the electrical plug (1, 1a) can be determined by the socket according to the preset impedance value of the verification resistor; a second temperature detection element disposed on the circuit board, adjacent to the plurality of contact pins and electrically connected with the verification resistor, wherein the second temperature detection element is configured to detect the temperature of the plurality of contact pins and output a second detection signal, wherein the temperature variation of the plurality of contact pins is correlated with a current variation of the second temperature detection element; and a processor electrically connected with the first temperature detection element and the second temperature detection element, wherein the processor is configured to determine whether the temperature of the plurality of contact pins is greater than or equal to a temperature threshold according to the first detection signal and the second detection signal, and the processor disables the electrical plug (1, 1a) to transmit the input power to the load when the electrical plug (1, 1a) is in an over-temperature state. a casing; a plurality of contact pins disposed on the casing and configured to plug into the socket so as to provide an input power required by the socket; a power cable connected with the plurality of contact pins and configured to transmit the input power to the load through the socket when the electrical plug (1, 1a) is coupled to the socket and the electrical plug (1, 1a) is in a normal state; a circuit board disposed in the casing; characterized by a first temperature detection element disposed on the circuit board and adjacent to the plurality of contact pins, wherein the first temperature detection element is configured to detect a temperature of the plurality of contact pins and output a first detection signal, wherein a temperature variation of the plurality of contact pins is correlated with an impedance variation of the first temperature detection element, and the first detection signal reflects the impedance variation of the first temperature detection element; a verification resistor disposed on the circuit board and having an impedance value according to the type of the electrical plug (1, 1a), so that the type of the electrical plug (1, 1a) can be determined by the socket according to the preset impedance value of the verification resistor; a second temperature detection element disposed on the circuit board, adjacent to the plurality of contact pins and electrically connected with the verification resistor, wherein the second temperature detection element is configured to detect the temperature of the plurality of contact pins and output a second detection signal, wherein the temperature variation of the plurality of contact pins is correlated with a current variation of the second temperature detection element; and a processor electrically connected with the first temperature detection element and the second temperature detection element, wherein the processor is configured to determine whether the temperature of the plurality of contact pins is greater than or equal to a temperature threshold according to the first detection signal and the second detection signal, and the processor disables the electrical plug (1, 1a) to transmit the input power to the load when the electrical plug (1, 1a) is in an over-temperature state.