Question: are gnats attracted to carbon dioxide?
Answer: Fungus gnats are attracted to carbon dioxide, which is why adult flies become a nuisance to humans as they are drawn to the carbon dioxide in our breath. ... Fungus gnats lay their eggs in the top inch or so of the soil, feeding on moist algae – they are unable to burrow very deep.