A wireless sensor network (WSN) is an evolving field in the modern real world, a collection of spatially dispersed distributed and dedicated sensor nodes. It enables data transmission between Internet of Things (IoT) devices, even without human interaction. It connects the sensor nodes to a central gateway, where information can be collected from each sensor node and transmitted to the user for further processing. However, it is used everywhere, from event monitoring to sensing the environment, personal and home area networks, and other service-oriented networks. Due to the heterogeneous nature of devices in the IoT networks, efficient use has become a challenging issue. Several IoT benchmark problems are available in the literature, and many researchers try to solve these problems. Thus, researchers have conducted many studies to obtain an optimal solution for this problem, but there is still a research gap. Hence, an efficient model is proposed and tested using 25 benchmark IoT problems to address this problem. The results obtained in this paper reveal that the proposed model provides a better solution.