This study presents the development and the evaluation of a low-cost sensor-based system to optimize the management of surface irrigation at the field level. During a surface irrigation event, water flows according to the slope of the field and it is difficult and time-consuming to predict the optimal time when inflow should be stopped. In such systems, measurement tools are uncommon and those existing are far too complex and expensive to be used as decision support tools on small farms. This article presents the development of an Open Source system, based on low-cost technologies, Internet of Things and LoRaWAN network, that allows: (i) detection of water at the sensor location in the field, (ii) sending an alert by phone to the user and (iii) remote control of surface irrigation gates. The metrological characteristics of the system and its suitability were tested in real conditions during one irrigation season of hay fields in the Mediterranean region. The results highlighted the reliability of the low-cost sensor system for detecting water and transmitting information remotely, with a 100% success rate. Remote control of irrigation gates was successful in 89% of trials carried out in the field, and adjustments resulted in a 100% success rate. The savings in labour time for the farmer and in irrigation water volumes made possible by the use of this system, as well as the inevitable trade-offs between accessibility, reliability and robustness of new technologies for agriculture, are finally discussed.