*Article* **Design and Implementation: An IoT-Framework-Based Automated Wastewater Irrigation System**

**Shabana Habib 1,\*, Saleh Alyahya 2, Muhammad Islam 2, Abdullah M. Alnajim 1, Abdulatif Alabdulatif <sup>3</sup> and Abdullah Alabdulatif <sup>4</sup>**

	- Al-Rass 51451, Saudi Arabia

**Abstract:** Automation is being fueled by a multifaceted approach to technological advancements, which includes advances in artificial intelligence, robotics, sensors, and cloud computing. The use of automated, as opposed to conventional, systems, has become more popular in recent years. Modern agricultural technology has played an important role in the development of Saudi Arabia in addition to upgrading infrastructure and plans. Agriculture in Saudi Arabia is dependent upon wells, which are insufficient in terms of water supplies. Thus, irrigation is used for agricultural fields, depending on the soil type, and water is provided to the plants. Two essential elements are necessary for farming, the first is the ability to determine the soil's fertility, and the second is the use of different technologies to reduce the dependence of water on electrical power and on/off schedules. The purpose of this study is to propose a system in which moisture sensors are placed under trees or plants. The gateway unit transmits sensor information to the controller, which then turns on the pump and recycles the water flow. A farmland's water pump can be remotely controlled and parameters such as moisture and flow rate can be monitored using an HTTP dashboard. In order to evaluate the applicability of IOT-based automatic wastewater irrigation systems, a pilot test was conducted using the developed framework. Theoretically, such a system could be expanded by including any pre-defined selection parameters.

**Keywords:** sensors; microcontroller; mobile networking; data processing; visualizations; Internet of Thing (IoT); GUI
