A detector configured to monitor a level of a gaseous molecular species within a flow of breathable gas, the detector comprising: a first source configured to emit mid-infrared electromagnetic radiation; a second source configured to emit near-infrared electromagnetic radiation; source optics configured to combine mid-infrared electromagnetic radiation emitted by the first source and near-infrared electromagnetic radiation emitted by the second source into a coaxial beam, and to direct the coaxial beam across a flow path of a flow of breathable gas that communicates with an airway of a subject; sensor optics configured to receive electromagnetic radiation in the coaxial beam that has traversed the flow path, and to divide the received electromagnetic radiation into first radiation that includes mid-infrared electromagnetic radiation and second radiation that includes near-infrared electromagnetic radiation; a first radiation sensor configured to receive the first radiation, and to generate output signals conveying information related to a parameter of the mid-infrared electromagnetic radiation in the first radiation; a second radiation sensor configured to receive the second radiation, and to generate output signals conveying information related to a parameter of the near-infrared electromagnetic radiation in the second radiation; and a processor configured to determine a level of a gaseous molecular species within the flow of breathable gas in the flow path based on the output signals generated by the first radiation sensor and the second radiation sensor such that the output signals generated by the second radiation sensor are implemented to compensate optical loss through the flow path in the output signals generated by the first radiation sensor; characterized in that the detector further comprises a source monitoring apparatus configured to generate output signals conveying information related to electrical resistance through the first source, and wherein the processor is further configured such that the determination of the level of the gaseous molecular species is further based on the output signals generated by the source monitoring apparatus to account for the electrical resistance through the first source. a first source configured to emit mid-infrared electromagnetic radiation; a second source configured to emit near-infrared electromagnetic radiation; source optics configured to combine mid-infrared electromagnetic radiation emitted by the first source and near-infrared electromagnetic radiation emitted by the second source into a coaxial beam, and to direct the coaxial beam across a flow path of a flow of breathable gas that communicates with an airway of a subject; sensor optics configured to receive electromagnetic radiation in the coaxial beam that has traversed the flow path, and to divide the received electromagnetic radiation into first radiation that includes mid-infrared electromagnetic radiation and second radiation that includes near-infrared electromagnetic radiation; a first radiation sensor configured to receive the first radiation, and to generate output signals conveying information related to a parameter of the mid-infrared electromagnetic radiation in the first radiation; a second radiation sensor configured to receive the second radiation, and to generate output signals conveying information related to a parameter of the near-infrared electromagnetic radiation in the second radiation; and a processor configured to determine a level of a gaseous molecular species within the flow of breathable gas in the flow path based on the output signals generated by the first radiation sensor and the second radiation sensor such that the output signals generated by the second radiation sensor are implemented to compensate optical loss through the flow path in the output signals generated by the first radiation sensor; characterized in that the detector further comprises a source monitoring apparatus configured to generate output signals conveying information related to electrical resistance through the first source, and wherein the processor is further configured such that the determination of the level of the gaseous molecular species is further based on the output signals generated by the source monitoring apparatus to account for the electrical resistance through the first source.