I've been fantasizing about building a fully automated total control system for my indoor garden based around a Raspberry Pi and a series of sensors and relays.I found some example on-line for a code that control on/off time of LED using the flat sequence structure (attached). It controlls the boolean so that it's on and off for certain time. The problem is, how do I interface this with DAQ assistant for the valve? In other words, I need to make the continuous sequence of on-2 miniutes off-5 minutes as an input to DAQ assistant so that will communicate with the valve, but I am not sure how to do that.. I have attached the image of where I am at right now.I went through many Automated Control System Video but was bit confused.
Any advice will be greatly appreciated!