All the nodes in the WSN communicate their data to their respective destinations. But it requires a lot of energy to send that particular data. So due to long distance of the source and destination a lot of energy is required by the nodes to send the data. After some time all the energy of the node will be depleted and it cannot send data. Therefore, to increase longevity and support scalability, nodes are often grouped into disjoint and mostly non-overlapping clusters. By using the clustering method, the nodes in the clusters do not have to send data directly to the destination instead they send data locally to the cluster head.