**Abstract**

Nowadays the world population increases, so the demand for clean water is rising. Rain is the faster resource that can recharge compared to ground water. Rainwater harvesting system (RWHS) is one of the traditional and easiest ways of rising fresh water supplies. This system already implements by many countries in the world as a viable decentralized water source. Malaysia can be classified as a country with high annual rainfall and high consumption of domestic water. Malaysia is well and strategically positioned to harvest rainwater for both potable and non-potable uses. This research describes the collaborative and development affordable technology for capturing and retaining runoff starting from rooftop gutter until the tank storage using as a valuable source of water and recharge the percolation well and increase ground water level. The developed system consists of soil sensor, integrated water pump, Arduino controller and water tank harvesting with dynamic mechanical flushing technique which improving filtration method. The results show that the system can be efficiently used for small-scale drip irrigation especially in urbanization farming as nowadays scenario of agriculture demand. Hopefully, this can be helpful as a valuable water source in future.

**Keywords:** smart irrigation and drainage, smart water tank, rain harvesting system, Arduino microcontroller
