In wireless sensor networks (WSNs) , energy is a major constrain.Energy efficient network protocols is required to maintain reliable sensing of the sensing field . WSNs that use LEACH protocol, have node in a cluster periodically take trials to become cluster - head,such that the nodes in the cluster becomes cluster - head evenly. Nodes with greater transmission distance to the base station in the cluster dies out faster because it performs more work in transmitting data when it is cluster-head. The distance-based algorithm presented in this project, ensures that work is allocated to the nodes in the cluster more evenly ,thus, all areas of the sensor field is sensed more reliably