A method for identifying the type of a detection device, comprising a detection device and an analyzer, wherein the detection device comprises a housing formed by assembly of the upper plate and the bottom plate, the housing provided with an identification element, and the analyzer comprises an upper cover, a bottom cover, a detection device insertion port, a circuit board assembled between the upper and bottom covers, and a detection switch mounted to the circuit board to distinguish the type of the detection device, wherein through whether the detection switch of the analyzer is triggered by the identification element or not, the analyzer generates a signal corresponding to whether triggering is carried out or not to identify the type of the detection device.