Terahertz (THz) spectroscopy has demonstrated significant potential for substance detection due to its low destructiveness and due to the abundance of molecular fingerprint absorption signatures that it contains. However, there is limited research on the fingerprint detection of substances at different temperatures. Here, we propose a THz metamaterial slit array sensor that exploits localized surface plasmons to enhance the electric field within the slit. The transmission peak frequency can be modulated via temperature adjustments. This method enables the detection of molecular absorption characteristics at multiple spectral frequency points, thereby achieving a specific and highly sensitive detection of characteristic analyte fingerprint spectra. Additionally, the sensor supports the detection of substances at multiple temperatures and sensitively identifies changes in their absorption properties as a function of temperature. Our research has employed temperature variation to achieve a highly sensitive and specific detection of trace analytes, offering a new solution for THz molecular detection.