Vent stacks in home plumbing systems work the same ... opens to let air in when waste drains. Gravity closes the valve to keep sewer gases from escaping back into the room. Codes in many ...