An IOT alarm system based on S1M900A module of SIMCOM Company was designed for greenhouse. The system can gather environmental parameters such as air temperature and air humidity. Meanwhile, with the use of AT command, this system can also realize SMS automatic sending and receiving, environmental parameters overrun alarm and insufficient balance alarm. Through the system setting, the alarm message can be sent to the user-specified mobile phone automatically no matter what the users' location is. This system as a typical application of IOT in the agriculture has got some satisfactory results in the actual operation.