Sensors applied to plant leaves warn of water shortage