By accurately detecting moisture levels, this artificial leaf sensor could help increase crop yields while reducing the need for pesticides.