According to the needs of modern agricultural automation and intelligence, a greenhouse monitoring system based on ZigBee technology is designed. Through the design of the hardware and software of each node and controller, the system realizes the monitoring and control of various environmental factors in the greenhouse by combining the ZigBee and GPRS wireless network technology. According to the actual situation of the greenhouse, a kind of Smith- fuzzy PID temperature control algorithm is designed. The simulation model was built by the Simlink module in MATLAB. The simulation results are compared with common PID and fuzzy PID control. The experimental results show that the Smith- fuzzy PID control algorithm has high accuracy and good stability, and it has strong application prospects.