In this paper, presents solutions to application internet of things (IoT) technology in the field of high-tech agriculture, livestock in Vietnam is currently a new problem. The system includes an application on a smartphone; access the parameters via the web, on the computer. The product has a monitoring function: the ambient atmosphere indicators of the pig farm (temperature, humidity, CO<sub>2</sub>, NH<sub>3</sub>, H<sub>2</sub>S gas, and Biogas pressure), on the website 24/24 hour and control automatic control monitoring system. This is a problem of researching, designing and manufacturing products to automatically control the quality of the ambient atmosphere to improve productivity and quality of pig raising in practice at Bach Khoa Production, Trade and Service Joint Stock Company Bach Phuong (Address: Vinh Hao Commune, Vu Ban District, Nam Dinh Province, Vietnam).