Halide perovskite materials have attracted great interest for applications in low-cost, solution-processed solar cells and other optoelectronics applications. The role of moisture in perovskite device degradation and crystal formation processes remains poorly understood.Here we use a data-driven approach to discover the influence of trace amounts of water on perovskite crystal formation by analyzing a comprehensive dataset of 8,470 inversetemperature crystallization lead iodide perovskite synthesis reactions, performed over 20 months using a robotic system. We identified discrepancies between the empirical crystal formation rate in batches of experiments conducted under different ambient relative humidity conditions for each organoammonium cation. We prioritized these using a statistical model, and then used the robotic system to conduct 1,296 controlled interventional experiments in which small amounts of water were deliberately introduced to the reactions. The addition of trace amounts of water promotes crystal formation for 4-methoxyphenylammonium lead iodide and iso-propylammonium lead iodide and inhibits crystal formation for dimethylammonium lead iodide and acetamidinium lead iodide. We also performed thinfilm syntheses of these four materials and determined the grain size distributions using scanning electron microscopy. The addition of water results in smaller grain sizes for dimethylammonium and larger grain sizes for isopropylammonium, consistent with earlier or delayed nucleation, respectively. The agreement between the inverse temperature crystallization and thin film results indicates that this is a feature of the ammonium-water interaction that persists despite differences in the synthesis method.