It is difficult to establish accurate mathematical model for effective monitoring because the piggery is a complex environment with typical multi-parameter coexistence. In view of the above situation, a kind of PID algorithm iot second-pollution regulatory system is put forward. The system adopts the integral separation PID algorithm, through the real value and the user value of deviation and compares the safety threshold algorithm model, output feedback control quantity to stop farming equipment for automatic breeding, breeding complete automation. Comparing the two kinds of PID algorithm, th...