Wireless sensor network contains a large number of nodes, whose battery power is very limited. By deploying these sensor nodes, we can gather useful information in certain areas. LEACH protocol gives a way of aggregating data by forming some clusters. Each randomly chosen cluster head incorporates data to reduce the amount of information received by other nodes in the same cluster, the aggregated result is transmitted to the sink node. It can avoid each node transmitting collected data to the sink node for a long distance, saving plenty of energy. It will improve the security of communication since wireless sensor network is applicable to the underground communication system. The coal mine is divided into several saps, each sap is regarded as a cluster, most of the sensor nodes are placed in certain position, only a few move with miners, and then the data that they collected were transmited to the sink node. This article proposes that LEACH protocol should be amended to fit the structure of coal mine, the choice of cluster head is optimized and some special nodes are permitted to communicate with sink node through multi-hop routing, so it can save much energy, and can prolong the lifetime of network efficiently.