Indian climate which primarily consists of four seasons and the majority of agriculture in India is practised in monsoon which is rainfed agriculture. The lack of irrigation makes India a potent place for the experiment of efficient water irrigation. Internet of Things (IoT) have emerged has ubiquitous technology which is being used in many fields. Machine Learning has proven to be helpful in data-intensive tasks. IoT and machine learning would prove helpful in agriculture. This paper proposes a system based on the research of machine learning and IoT to increase the efficiency in irrigation. With the help of data gathered through sensors and using machine learning algorithm the amount of water the needed for irrigation is calculated and used for irrigation. © 2021, Springer Nature Singapore Pte Ltd.