How do bacterial cells living on leaf surfaces survive the huge environmental fluctuations they face every day? To answer this question we use computer simulations to study bacterial decision making on leaves. We show that if cells make ‘smart’ decisions based on information they acquire on local cell densities, they can increase their survival rates (see paper). See more at Nadav Kashtan Lab.