Method for providing ventilatory settings with regard to the airway pressure levels of an artificial ventilator, the artificial ventilator is connected to a lung, including the steps of obtaining data samples of a gas concentration of the expired gas over a single breath selecting a plurality of data samples from the obtained data samples calculating a tracing value being sensitive to changes of alveolar dead space on the basis of the selected data samples repeating steps a), b) and c) for obtaining a plurality of tracing values and changing at least one airway pressure level of the artificial ventilator, wherein from an observation of a resulting course of the plurality of calculated tracing values an airway pressure level at which alveolar opening or lung overdistension or lung open condition or alveolar closing occurs is detected. Apparatus for providing ventilatory settings with regard to the airway pressure levels of an artificial ventilator is also disclosed.