When fruit flies lack essential amino acids, their brains rewire their sense of smell to help them find food rich in the nutrients they need. Researchers discovered that two genes—Or92a and Ir76a—boost the flies’ sensitivity to smells linked with fermented foods and bacteria that produce beneficial amino acids.