The disclosure extends to apparatuses, methods, systems, and computer program products for generating and optimizing irrigation protocols. The disclosure also extends to a system and method for the detection of leaks in an irrigation system during operation in accordance with the disclosed methods, systems, and computer program products for optimizing water usage in growing plants for yard and crops.