This paper presents an automatic water irrigation and drainage system designed to increase the yield production of rice and improve water use efficiency. Water level sensors are placed in the rice field and continuously measure the water level. The system automatically irrigates water through the entrance gate when the water level is lower than the desired level. The entrance gate closes after the water level reaches the desired level. When the water level in the rice field is higher than the desired level, the system either opens the exit gate if the drain is empty, or switches on the pump if the drain is full of water.Index Terms-automated irrigation, paddy field, water level, agriculture, paddy irrigation.