**1. Introduction**

#### **1.1 Background of study**

Water is nature's gift for the good purpose of living on the earth. The righteous book of Al-Quran as in Sura Al Anbiya verse 30, mentioned that water is the source for living. To survive, living things, humans and plants need water as an important source. Nowadays, water shortage becomes a major issue. The increasing population causes a high demand for water. To overcome the water issue, water can be collected from rainwater as an alternative where it can be used for daily routine such as bathing, watering plants, vertical farming, and washing the car. Rainwater harvesting system is the best solution and it's appropriate to do it in Malaysia because our country receives 990 billion m3 of rainfall per year. (Department of Irrigation and Drainage Malaysia).

The rainwater harvesting system (RWHS) is an alternative way of agriculture activity. The agriculture sector is the most water use compared to other industries. It can collect rainwater from the rooftop and open space. The scale of the rainwater catchment area is depended on the area of the roof and demand. Even though the rainwater harvesting system has the potential for agriculture like irrigation, but there are still drawbacks to this system, particularly in large-scale projects that cannot be applied to gain potential output and best result.

The aim of this study is to develop a prototype system for sustainable agriculture. The source of water for this system is derived from the original rainwater source. In order to allow the water to flow out from the tank, a sensor remote is needed.
