Near-to-mid-infrared photodetection technologies could be widely deployed to advance the infrastructures of surveillance, environmental monitoring, and manufacturing, if the detection devices are low-cost, in compact format, and with high performance. For such application requirements, colloidal quantum dot (QD) based photodetectors stand out as particularly promising due to the solution processability and ease of integration with silicon technologies; unfortunately, the detectivity of the QD photodetectors toward longer wavelengths has so far been low. Here we overcome this performance bottleneck through synergistic efforts between synthetic chemistry and device engineering. First, we developed a fully automated aprotic solvent, gas-injection synthesis method that allows scalable fabrication of large sized HgTe QDs with high quality, exhibiting a record high photoluminescence quantum yield of 17% at the photoluminescence peak close to 2.1 μm. Second, through gating a phototransistor structure we demonstrate room-temperature device response to reach >2 × 10 cm Hz W (at 2 kHz modulation frequency) specific detectivity beyond the 2 μm wavelength range, which is comparable to commercial epitaxial-grown photodetectors. To demonstrate the practical application of the QD phototransistor, we incorporated the device in a carbon monoxide gas sensing system and demonstrated reliable measurement of gas concentration. This work represents an important step forward in commercializing QD-based infrared detection technologies.