Die vorliegende Erfindung betrifft ein Verfahren und ein Beatmungsgerät (1) mit einer Beatmungseinrichtung (2). Die Beatmungseinrichtung (2) umfasst eine Gebläseeinrichtung (3) zur Erzeugung einer Atemgasströmung für die Beatmung und eine Kupplungseinrichtung (4) zur Anbindung einer Schlaucheinrichtung (5), über welche die Atemgasströmung wenigstens einer Atemöffnung eines Benutzers zuführbar ist. Dabei umfasst die Beatmungseinrichtung (2) eine Erkennungseinrichtung (6) zur Erkennung unterschiedlicher Typen von Schlaucheinrichtungen (5). Die Erkennungseinrichtung (6) ist dazu geeignet und ausgebildet, eine charakteristische Größe der Atemgasströmung zu erfassen und anhand der erfassten Größe den Typ der angebundenen Schlaucheinrichtung (5) zu erkennen.The present invention relates to a method and a ventilator (1) with a ventilator (2). The ventilator (2) comprises a blower means (3) for generating a flow of respiratory gas for the respiration and a coupling device (4) for connecting a tubing portion (5), by means of which the flow of respiratory gas at least one breathing opening of a user can be supplied to. In this case the ventilator (2) comprises a detecting device (6) for the recognition of different types of hose means (5). The detection device (6) is designed and suitable for this purpose, a characteristic size of the flow of respiratory gas, to be detected and on the basis of the detected size of the type of the connected hose device (5) can be seen.