The data of temperature and humidity inside and outside the building is important forbuilding energy consumption analysis. Obtaining, storing and monitoring these data in a timely, accurate
and efficient way is of great significance for reducing energy consumption of buildings and achieving sustainable development.The temperature and humidity data collected through the Wireless Sensor Network (WSNs)based on the ZigBee protocol is stored in the SQLCE embedded database of the base station.A remote user is connected to the base station to obtain data. To realize the real-time communication, Internet communication is the most efficient way. Therefore we developed a wireless sensor network remote monitoring system based on Socket network programming. The research group developed a wireless sensor network system as the
hardware platform under theVisual Studio 2005 development environment. They combined the technology development of embedded database SQLCE with Sockets socket. C# programming language is utilized to achieve real-time display of wireless sensor network data remote computer storage and query functions. This research has important practical significance for real-time data sharing based on wireless sensor network technology. Furthermore, it can reduce building energy consumption and broaden the application areas of wireless sensor networks as well.