A portable temperature and humidity alarm detector device based on the AT89C2051 microcontroller is designed and realized. Firstly,the composition and working principle of the entire system are introduced,and then temperature detecting circuit,humidity measuring circuit and power detecting circuit are also provided. This system has function of automation detection, value displaying on LED in real time and transfinite alarming in high sound intensity.