A fast and reliable photoacoustic (PA) sensor for trace gas detection is reported. The sensor is based on a 3D-printed resonant cell in combination with a continuous wave mode-hop-free external cavity quantum cascade laser to rapidly acquire gas absorption data in the midinfrared range. The cell is designed so as to minimize the window PA background at a selected acoustic resonance. The goal is a resonant PA cell capable of detecting the traces of gases using wavelength modulation of the laser source and second harmonic detection. The versatility and enhancement of the limit of detection at sub-ppm levels are investigated by monitoring specific lines of hydrogen sulfide (H2S). The noise-equivalent absorption normalized to laser-beam power and detection bandwidth is 1.07×10-8 W cm-1 Hz-1/2 for H2S targeting the absorption line at 1247.2 cm−1. These properties make the sensor suitable for various practical sensors for water quality applications.