In future most of the devices on the earth connected to the internet for making world of intelligent networks. The internet of things (IoT) and Industrial IoT play a very significant role for implementing such kind of smart networks. So, in that case, the transmission of packets of data sent to the base station from sensor nodes with minimum energy consumption in a homogeneous or heterogeneous environment to hike the stability of the network appears as a big challenge for IoT-based networks. But, such kind of problem can be overcome by using a proper clustering algorithm. In this work, different kinds of classical clustering algorithms are studied precisely. Most of the traditional clustering algorithm protocols presume that all the nodes have the same amount of energy, they are unable to fully exploit the presence of node heterogeneity and the same problem will be faced with IoT-based networks. In this specific piece of work, we recommend a gateway based heterogeneous energy-based clustering algorithm which is crucial for many wireless sensor networks along with IoT-based applications. In this concept geographical area is divided into three zone, Advanced, Intermediate and normal zone. Here, advance nodes send data through gateway to the base station while intermediate node use clustering algorithm for transferring data and normal nodes communicate data to the base station directly. ZSGHCP is driven by the mounded election protocol probabilities of each node elected as a cluster head depending on the rest of the energy. By simulation, we show that ZSGHCP invariably extends the stability time as compared to current clustering procedures. Finally, we investigate the sensitivity of our ZSGHCP protocol to network heterogeneity characteristics that capture energy imbalance, throughput, and no of alive nodes. We construct that ZSGHCP payout extends the durability region for excessive values of additional energy brought by extra higher-powered nodes.