This document describes a smart irrigation system that uses soil moisture sensors and a programmable logic controller (PLC) to automate watering. The system aims to minimize water waste by only turning on pumps and supplying water when the soil moisture drops below a predefined threshold. Two sensors placed at different intervals will sense soil moisture levels and send data to the PLC. The PLC will compare the sensed values to the threshold and control solenoid valves and pumps accordingly to automatically supply water as needed based on soil dryness. The system is intended to provide the optimal required water to crops based on their demands and availability of electricity for pumping, reducing water consumption in agriculture through automation.