Over the years, traditional way of farming results in reduction of yield of crops due to the changing climatic conditions and insufficient down pouring, to tackle this problem water usage in irrigation must be restricted and no wastages of this precious resource is tolerable. This paper discusses about the use of IoT in irrigation and the challenges expected to be faced when integrating technology with the conventional farming methods. The objective of this paper is to implement the technology of smart irrigation using IoT, to develop a system using a controller that processes not only the filed data from soil moisture sensor and but also analyze the condition of the future weather data from an open API, with these parameters the occurrence of rainfall is predicted and based on which irrigation is carried out. It results in water conservation and reduction in energy consumption. This technique can also be carried out in hydroponic system, is a method of growing crops without soil.