The paper is designed to develop an automatic irrigation system which switches the pump motor ON/OFF on sensing the moisture content of the soil. In the field of agriculture, use of proper method of irrigation is important. The advantage of using this method is to reduce human intervention and still ensure proper irrigation. The project uses an 8051 series microcontroller which is programmed to receive the input signal of varying moisture condition of the soil through the sensing arrangement. This is achieved by using an op-amp as comparator which acts as interface between the sensing arrangement and the microcontroller. Once the controller receives this signal, it generates an output that drives a relay for operating the water pump. A WiFi modem is interfaced to the microcontroller to send the current status of the soil and water pump. The sensing arrangement is made by using two stiff metallic rods inserted into the field at a distance. Connections from the metallic rods are interfaced to the control unit. This concept is more enhanced by integrating IOT(internet of things) technology, such that whenever the water pump switches ON/OFF, the concerned person or the farmer using this system get to know about it through the web page regarding the status of the pump.