The present invention provides a new system and method of controlling irrigation through a smart and connected controller device. This new controller is able to collect information about the environment where it is installed and use it to adapt its irrigation schedule thus maximizing water savings while making sure that the plants are getting the right amount of water. The system is able to collect different types of information ( soil moisture, temperature, ... ) either through sensors or through its wireless connection. In addition to the fact of being able to work independently, the system takes advantage of its wireless connection to offer remote control and management to its users.