A detector to measure composition of a flow of gas from a respiratory circuit. The detector includes a housing and a removable flow path element. The removable flow path element includes an inlet, a sampling chamber, a pump section including a membrane and an actuator interface, and an outlet. A flow path element dock is formed by the housing with the flow path element dock to removably engage the removable flow path element. A radiation source within the housing emits radiation into a sampling chamber of the removable flow path element while the removable flow path element is docked in the flow path element dock. A sensor is housed within the housing. A pump actuator and controller are within the housing to drive the pump to maintain the flow rate of the flow of breathable gas through an enclosed flow path.L'invention concerne un système et un procédé qui sont configurés pour surveiller une composition d'un écoulement de gaz respirable qui est fourni à un sujet. Un écoulement de mesure de gaz respirable est dévié de façon à surveiller la composition de l'écoulement de gaz respirable, puis l'écoulement de mesure de gaz respirable est renvoyé à l'écoulement de gaz respirable. Ceci aura tendance à conserver les gaz constitutifs à l'intérieur de l'écoulement de gaz respirable, ce qui peut être significatif dans des cas dans lesquels l'écoulement de gaz respirable est utilisé pour administrer des médicaments ou des drogues (par exemple, un agent anesthésique relativement bon marché, et/ou d'autres médicaments ou drogues). Etant donné que l'écoulement de mesure de gaz respirable aura tendance à avoir des contaminants (par exemple, sang de mucus, médicaments, ou autres matériaux), acheminer l'écoulement de mesure de gaz respirable de retour dans l'écoulement de gaz respirable constitue une solution de positionnement pour les contaminants. Dans le système 10, les composants qui viennent en contact avec l'écoulement de mesure de gaz respirable peuvent être mis au rebut, de