It changes all year round. In the north, in order to satisfy the public's desire to eat fresh vegetables in winter, vegetable greenhouses came into being. With the rapid development of society, people have put forward higher and higher requirements for the quality of vegetables. The temperature and humidity of the greenhouse have a great influence on the quality of vegetables. Therefore, in order to ensure the quality of vegetables, the temperature and humidity of the greenhouse must be kept within the range most suitable for the growth of vegetables. Therefore, the design of the temperature, room temperature and humidity control system are particularly important. The temperature and humidity control system based on single-chip microcomputer designed in this paper monitors and tempers the greenhouse temperature in real time through the DS18B20 and DHT11 temperature and humidity sensors, respectively, and displays the monitoring results on the liquid crystal display. The single chip microcomputer adjusts the greenhouse temperature and humidity through the monitoring results In order to keep the temperature and humidity of the greenhouse in a constant range. The temperature control system in this paper can achieve a measurement accuracy of ± 0.3 ℃ and a display accuracy of 0.1 ℃. It can also manually adjust the temperature and humidity within a certain range to suit the growth conditions of different vegetables. The results show that the temperature measurement system has the characteristics of high accuracy, high sensitivity, stable operation and so on, which meets the performance requirements of the design. It is a reliable digital temperature measurement control system.