most plants have the ability to close their stomata at the start of water stress, at least partially, to restrict rates of transpiration. they use signals or hormones sent up from the roots and through the transpiration stream. since roots are the parts responsible for water searching and uptake, they can detect the condition of dry soil. the signals sent are an early warning system - before the water stress gets too severe, the plant will go into water-economy mode.