Aiming at the problem of temperature control system based on single chip microcomputer. Traditional control method is prone to slow response, shaking violently and bad control effect.The hardware circuit,precision temperature control and control algorithms of control system get design and research. The control system base AT89C51 as core and apply DS18B20 sensor .The variable universe fuzzy PID control was introduced in the control system. The variable universe fuzzy control and PID control combine to form a variable universe fuzzy PID controller.Compared with the traditional PID and variable universe fuzzy PID in piggery.The experimental results indicated that the system uses variable universe fuzzy PID improves the control precision, accelerate the respond speed .Thereby enhancing the usefulness of temperature control system.It had important practical engineering significance.