Vorrichtung zur Gewinnung und Untersuchung von Atemgasproben mit– einer Atemgasleitung (1) und mit einem Sensor (2) zur Erkennung der aktuellen Atemphasen,– einer Probenahmeleitung (3) von der Atemgasleitung (1), wobei die Probenahmeleitung (3) über eine Probegasschleife (4) mit einer ersten Gasfördervorrichtung (44) verbunden ist,– einer Messleitung (8) von der Probenahmeleitung (3) zu einem Sensorsystem (6) mit einer zweiten Gasfördervorrichtung (66) für die Untersuchung von Atemgasproben,– einem Ventil (5) in der Probenahmeleitung (3) für die Steuerung des Atemgasprobeflusses aus bestimmten aktuellen Atemphasen in das Sensorsystem (6) und in die Probegassschleife (4) und mit– einer Steuereinheit (7), welche zumindest mit dem Sensor (2) zur Erkennung der aktuellen Atemphasen, mit der ersten Gasfördervorrichtung (44) und mit dem Ventil (5) verbunden ist, so dass– dem Sensorsystem (6) ein kontinuierlicher Volumenstrom von Atemgasproben aus den bestimmten aktuellen Atemphasen zuführbar ist.An apparatus for obtaining and examination of respiratory gas samples with– a breathing gas conduit (1) and with a sensor (2) for detecting the current breath phases,– a sampling line (3) of the breathing gas conduit (1), wherein the sampling line (3) by means of a sample gas loop (4) with a first gas transporting device (44) is connected,– a measuring line (8) of the sampling line (3) to a sensor system (6) with a second gas transporting device (66) for the investigation of respiratory gas samples,– a valve (5) in the sampling line (3) for the control of the respiratory gas sample flow from certain current breath phases in the sensor system (6) and in the sample gas loop (4) and with– a control unit (7), which at least with the sensor (2) for detecting the current breath phases, with the first gas transporting device (44) and with the valve (5) is connected, so that– the sensor system (6) a continuous volume flow of respiratory gas samples from the determined current breath phases