Farmers use irrigation channels to irrigate agricultural fields for mung bean cultivation in Indonesia. However, irrigation water in some areas is heavily contaminated and foul-smelling, which can hinder the growth of mung bean plants. Treating irrigation wastewater with methods tailored to the plants’ needs can reduce the levels of contaminants present in the waste-laden irrigation water. This research uses three samples of water wastewater before, after, and PDAM water. This research aims to process polluted irrigation water to produce clean water that meets the quality standards required for plant irrigation. This study employs anaerobic filter technology and IoT-based phytoremediation processes. The results obtained from the wastewater treatment research include adjusting the water pH to 7, reducing COD levels by 41.55%, BOD by 54.6%, phosphates by 23.13%, and nitrates by 90.22%. The comparison obtained from the experiment of watering the green bean plants using three water samples, namely irrigation wastewater before and after being treated, and PDAM water, showed that irrigation wastewater grew faster with a percentage of 65.33%, sewage irrigation water before being treated reached 49.33%, and PDAM water reached 53.33%. The treated water is then supplied to mung bean plants, promoting faster and healthier growth because the water nitrate, BOD, COD, and Phosphate decrease.