According to granary monitoring features,using a dynamic tree network topology,we design a wireless sensor network-based building monitoring and management system of grain.Designed a recyclable hybrid sensor node by using TI chip CC2530,each node become terminal or router depends on the dynamics of network operation.The system achieved real-time temperature and humidity collection inside the granary,data processing and transmission and PC monitor management,it solves the difficult problem wiring inside the greenhouse.Practice shows that the system has good results.