Implementing a cyber-physical system to monitor soil water status and environmental variables for irrigation scheduling