: This paper implements a weather monitoring system based on wireless sensor network. The wireless sensor network protocol proposed in this paper adopts a TDMA styled MAC. The protocol is designed to balance the energy consumption among sensor nodes. Other purposes of the protocol are to avoid the hidden terminal problem in 2-hop star topology, and to allow a CSMA styled communication in a given time slot to support emergent messages. Also, this paper develops the hardware of sensor node, gateway and electric generator based on solar and windy energy. The test results on the implemented system show that the time slot of each node is shifted in circular manner to balance the waiting time for transmission, and the reliability of wireless communication is over 99%.