Adapting to the water requirements of growing plants and reducing costs were among the challenges in developing an automatic irrigation system. This project use MEGA2560 R3 single-chip microcomputer as the main control center, through the sensor and react to the variation of temperature and humidity in the environment. The real-time detection of environment factors such as temperature humidity and light, single chip make analysis after the electrical signal is processed and pass the information to the VLcd display. The PID control responding better to changes in measured environmental factors to regulate watering levels so as to minimize the waste of water. It consists of reliable components at a relatively low cost. Its different components have been simulated and tested for their proven effectiveness in reducing water consumption and manual intervention, and the design itself saves resources through low energy consumption and reduces cost. In addition, by adding an VLcd screen to display real-time detection results of environmental factors and realizing one-key manual irrigation, the customization of the irrigation system can be realized, which can be more adaptable to the diversity of the environment and meet the needs of more customers.