The utility model relates to the technical field of sockets, in particular to a socket with an
infrared plugging detection function, which comprises a bottom shell, an upper cover and a socket module, the bottom shell and the upper cover form a cavity for mounting the socket module, the socket module comprises an insulating seat body, the insulating seat body is fixedly mounted on the bottom shell, the socket module is provided with an
infrared plugging detection device, and the
infrared plugging detection device is connected with the upper cover. The infrared plugging detection device comprises an infrared pcb, an infrared transmitting tube and an infrared receiving tube, the infrared pcb is installed on the socket module, the infrared transmitting tube is installed on one side of the infrared pcb, the infrared receiving tube is installed on the other side of the infrared pcb, and the infrared transmitting tube, the infrared receiving tube and jacks of the socket module are located on the same straight line. By arranging the infrared plugging detection device, the plugging state of the plug can be accurately detected, timely and accurate information is provided for a user, and the problems of equipment failure and the like caused by the fact that the plug is not plugged well or unplugged accidentally are avoided.