How to install smart irrigation with IOT Step by Step | Avian Workshops

Smart irrigation system



In olden Days Farmers used to figure the ripeness of soil and influenced suspicions to develop which to kind of yield. They didn’t think about the humidity, level of water and especially climate condition which terrible a farmer increasingly. The Internet of things (IOT) is remodeling the agribusiness empowering the agriculturists through the extensive range of strategies. 

For example, accuracy as well as practical farming to deal with challenges in the field. IOT modernization helps in assembly information on circumstances like climate, dampness, temperature and fruitfulness of soil, Crop web based examination empowers discovery of wild plants, level of water, bug location, creature interruption into the field, trim development, horticulture. 

IOT utilizes farmers to get related with his residence from wherever and at whatever point. Remote sensor structures are utilized for watching the homestead conditions and tinier scale controllers are utilized to control and mechanize the home shapes. To see remotely the conditions as in pictures and video, remote cameras have been used. IOT development can diminish the cost and update the productivity of standard developing.

Avian workshops also provides training & workshops in IoT. There you can enhance your skills & develop projects on your own. 

Components Required for Smart Irrigation System

Temperature-humidity sensor: Click here to buy at Xbotics

Moisture sensor : Click here to buy at Xbotics

Nodemcu: Click here to buy at Xbotics

relay: Click here to buy at Xbotics

Jumper Wires F2F: Click here to buy at Xbotics

Jumper wires m2m: Click here to buy at Xbotics

Dc motor: Click here to buy at Xbotics

Circuit Diagram for Smart Irrigation System


NodeMCU is an open source LUA based firmware developed for ESP8266 wifi chip. By exploring functionality with ESP8266 chip, NodeMCU firmware comes with ESP8266 Development board/kit i.e. NodeMCU Development board. NodeMCU Dev Kit/board consist of ESP8266 wifi enabled chip. The ESP8266 is a low cost Wi-Fi chip developed by Espress if Systems with TCP/IP protocol. For more information about ESP8266, you can refer ESP8266 WiFi Module

DHT11 Sensor:

 This sensor is basically a cost efficient digital humidity & temperature sensor. This sensor supplies digital output and therefore can be directly connected to data pins of microcontroller in spite of using ADC. It also consists of eight bit microcontroller to provide values of temperature & humidity in the form of data that is serial. It has 4 pins they are VCC, GND, DATA and NC. It operates from 3.3-5 volts power supply. This sensor has exceptional quality, anti-interference capability, economical performance and fast reaction benefits. Humidity is calculated by means of measuring the conductivity of liquid substrate that alters with exchange in humidity and temperature is calculated by the usage of a thermistor. The function called read() is used to take readings from the sensor which is included in the library. 


Soil Moisture Sensor

Moisture sensor has 3 pins – one is for voltage input, second for ground and third is for analog input. Moisture content of the soil (volume %) is measured by this sensor. The analog value need to be mapped in the range of 0-100 as moisture content is evaluated in percentage. The property used by this sensor is electrical resistance of soil. There are 2 probes in this sensor that permits the current to pass through the soil. After that it gets the value of resistance to measure the water content level. This implies that higher the water content higher is the conduction of electricity which means lesser resistance. If the soil is dry then the conduction in the soil is poor, this leads to increase in level of resistance. Hence it uses the property of resistance to measure the moisture in soil. It could be joined in two different ways they are Analog and Digital mode. 


Blynk is a new platform that allows you to quickly build interfaces for controlling and monitoring your hardware project from your Android device after downloading the blink app, you can create a project dashboard and arrange buttons, sliders, graph and other widgets onto the screen

Follow these following steps:

Add the board type to your Arduino IDE

Add the board type to your Arduino IDE if not added earlier before compiling. Go to File > Preferences > Settings and add

Include the esp8266 board community before compiling the above code otherwise, it generates an error.

To include library click Tools > Board > Board Manage

Search for esp8266 and install it.

Select your board type

Now, select your board type, go to Tools > Board: > NodeMCU 1.0.

Add Libraries:

Download the latest Blynk library from and add it to code.

Now, connect Node MCU device with your personal computer using Standard USB cable to connect Node MCU and upload the program in it. And then control the sensors using blynk app.