Cyber-Physical Systems Approach To Irrigation Systems