The code was generated by Circuito.io and modified to meet the requirements discussed in https://talk.circuito.io/t/i-need-help-in-creating-the-program-of-an-automatic-irrigation-system-with-lcd/4045
The latest circuito circuit can be found here: https://www.circuito.io/app?components=97,97,97,9088,9442,10167,10168,11021,13322,3061987,3061987&_ga=2.262978186.70196644.1583168364-953825219.1547752941