Ventilation control by measurement of carbon dioxide levels in public