In the Internet of things (IoT) based on Wireless sensor networks (IoT-WSN), conservation of the network resources can be done by arranging the devices into clusters. In the cluster head (CH) assortment procedure, several factors are measured bearing in mind the necessities of IoT-WSNs. In this paper, a load and energy-aware clustering protocol for Iot-WSN is proposed. The network is organized into clusters. In each cluster, a combined cost function is derived for each node based on the load, distance, and remaining energy parameters. Then the nodes are classified as suitable, not suitable and unfit for becoming the CH, depending on the cost function. The CH selection algorithm then selects the suitable nodes as the CHs in each round. The gateway or relay nodes are also placed in cluster borders in order to connect the adjacent clusters.