A valve is provided for relieving a gaseous pressure of a branching unit in flow communication with lungs of a subject. The valve comprises an inlet port in flow communication with the branching unit, an outlet port configured to release pressure by discharging a gas flow from the inlet port, and a valve seat in flow communication with the inlet port. The valve further comprises a valve member configured to close a gas discharge between the inlet port and the outlet port when forced against the valve seat, and to facilitate gas discharge between the inlet port and the outlet port when not forced against the valve seat. The valve further comprises a closing spring configured to direct a predetermined closing force to the valve member and an actuator configured to increase and decrease the closing force directed to the valve member.