Fermentation lock

The fermentation lock or airlock is a device used in beer brewing and wine making that allows carbon dioxide released during fermentation to escape the fermenter, while not allowing air to enter the fermenter, thus avoiding oxidation.
There are two main designs for the fermentation lock, or airlock. These designs work when half filled with water. When the pressure of the gas inside the fermentation vessel exceeds the prevailing atmospheric pressure the gas will push its way through the water as individual bubbles into the outside air. A sanitizing solution or vodka is sometimes placed in the fermentation lock to prevent contamination of the beer in case the water is inadvertently drawn into the fermenter.