Wireless sensor network have various applications such as automation, agriculture, security and environmental monitoring. Since thousands of sensors are usually deployed in the monitoring area with restricted energy. So the routing protocol must be designed. The main objective of routing protocol design is to minimize the energy consumption with increasing the network lifetime. In this paper, the authors analyses the LEACH protocol cluster head selection and proposed a new way of cluster head selection based on the residual of energy considering the heterogeneity of sensor nodes.