Hi Johann, as promised here's my project and sketch in its current form. I use Freetronics Ethermega which is a combo of Mega and W5100 on the same board, it works great and would likely help streamline your project a bit. I don't use an LCD as I interface via the web using Blynk and my smartphone acts as my LCD. Also on my Ethermega, I soldered on an RTC onto the proto area as gardening requires a schedule, and if the network fails, I can't have things turning off until the network is back up. Also in my project, I use a DHT22 sensor to measure Temp and RH in the room. My sketch either can toggle any of my 8 relays in accordance with time, Hi/Lo temp thresholds or Hi/Lo RH thresholds.
When I added Blynk, I went through hell debugging, but have since made it through and my previous "scheduled sketch" now works within the confines of Blynk's library well and I can even override my sketch if I set up my smartphone interface to do so, which IMO adds to the overall flexibility. The Blynk app is relatively simple to use, and because it's all digital, they have created every imaginable form of sensor display, i.e. gauges, graphs, bar graphs, tickers etc. Just choose your poison, drag and drop it to your app interface. You will need an "Auth Token" added into your sketch, but the Blynk library sniffs the web for the device with the matching Auth Token (your phone) and proceeds as programmed.
I also want to add in the use of the various probes, but I'm most concerned with PH, EC, and Temp. The way I grow involves multiple reservoirs (res), but it wouldn't be economical to have a set of probes per every res, so I also plan to have a good plumbing network that can pump the contents of each res past the probes for testing and returned to the res of origin. I also aim to use peristaltic pumps (basic DC motors) to accurately pump into the system any of various different nutrient solutions I use precisely to the tenth of a milliliter if needed. With a series of solenoid valves, fresh water and/or nutrient solutions can be pumped from their respective point of origin into any desired end res tank, mixed, and sent out for testing before being return. This to me, is my ideal end project, and even though I'm almost 2 years into it, I still have another 2/3 of my desired project to go.
Hope my progress aids in your project as I plan to glean from your progress as well. Note - I have both of my sketches uncombined, but have tested the merger in the past with success. I do need to remerge them though, just have not gotten around to it thus far.
DHTandRTC_Blynk_example.ino (3.05 KB)
TIMEorCLIMATEswitching.ino (8.74 KB)