The invention suggests a system for automated adjustment of a pressure set by a ventilation device, in particular a positive and-expiratory pressure and/or a maximum airway pressure, the system comprising a pressure detection arrangement for detecting a transpulmonary pressure at the end of an expiration phase and/or for detecting a transpulmonary pressure at the end of an inspiration phase, and a means for automated adjustment of the pressure set by the ventilation device on the basis of the transpulmonary pressure detected at the end of the expiration phase and/or the transpulmonary pressure detected at the end of the inspiration phase.