In the Internet of Things (IoT)-enabled networks, because of the open nature of wireless data transmission, data security and routing faces a significant issue. Nevertheless, characteristic features, such as heterogeneity, constrained resources, scalability requirement, and uncontrolled environment, construct the security problems highly difficult. Therefore, to augment energy effectiveness as well as nodes lifetime, an efficient, as well as secure routing protocol called Enhanced Energy Harvesting Trust Aware Routing Algorithm (Enhanced-EHTARA), is presented. Nevertheless, developed EHTARA is modeled by using Link Lifetime (LLT) with conventional EHTARA. Using adopted enhanced-EHTARA, the optimal secure routing path