Display the Data on the LCD Compare the value of Moisture Sensor with Threshold set Value If the Value is less, Raspberry pi Switch on the water Pump Next the Values are send to the Server Check if there is any command from the Server If yes , Pi will switch on the Motor and Off according to the command Go to Step 1
Data Flow
1) Sensors to Pi DF0 2) Pi to LCD DF1 3) Pi to Motor DF1 4) Pi to Server DF1 5) Sever to Pi DF2