The invention relates to valve (1) for discharging a gas (G) and for preventing a backflow of a liquid (L) into the valve (1), wherein the valve (1) comprises: a valve body (10) surrounding a channel (40) of the valve (1), wherein the valve body (10) further comprises at least one inlet (21) for passing gas (G) into said channel (40) and an outlet (31) for discharging said gas out of the valve (1). According to the invention, the valve body (10) comprises a circumferential groove (32) on an outside (10a) of the valve body (10), wherein said outlet (32) is arranged in said groove (32), and wherein the valve (1) comprises an elastically deformable annular sealing (33) that is arranged in said groove (32) such that when gas (G) is passed through said at least one inlet (21) into said channel (40) and the pressure of the gas (G) inside said channel (40) exceeds a threshold, the sealing (33) is pushed away from said outlet (31) by said gas (G) so that said gas (G) is discharged through said outlet (31) out of the valve (1) and such that when said pressure is below said threshold said sealing (33) closes said outlet (31) so that liquid (L) cannot flow back through said outlet (31) into the valve (1).