Wireless sensor networks have been used in various fields like battle feilds, surveillance, schools, colleges, etc. It has been used in our day-to-day life. Its growth increases day by day. Sensor node normally senses the physical event from the environment such as temperature, sound, vibration, pressure etc. Sensor nodes are connected with each other through wireless medium such as infrared or radio waves it depends on applications. Each node has its internal memory to store the information regarding the event packets. In this paper we will come to know the various algorithms in clustering techniques for wireless sensor networks and discuss them. Clustering is a key technique used to extend the lifetime of a sensor network by reducing energy consumption .It can also increase network scalability. Sensor nodes are considered to be homogeneous since the researches in the feild of WSNs have been evolved but in reality homogeneous sensor networks hardly exist. Here we will discuss some of the impact of heterogeneous sensor networks on WSN and various clustering algorithms used in HWSN.