New research shows how fruit flies use their sense of smell and humidity to find food, avoid dehydration and discover the best place to lay their eggs — in overripe marula fruits. Feces from herbivores are also suitable, but the flies reject carnivore excrement.