Fruit flies—Drosophila melanogaster—have a complicated relationship with carbon dioxide. In some contexts, CO2 indicates the presence of tasty food sources as sugar-fermenting yeast in fruit produces the molecule as a by-product. But in other cases, CO2 can b…