In Internet of Medical Things energy efficiency is a critical requirement in which sensors that are worn in body operate with limited resources of battery. In this paper we present a new energy efficient routing protocol for Internet of Medical Things applications that employs cost function based selection of a sensors that is used as forwarder. This mechanism is used to achieve balanced consumption of energy amongst all the sensors used in the network. The system model consists of eight sensors and a single sink placed on the human body, with routing decisions guided by a cost function incorporating distance, residual energy, and link quality. Performance evaluation is perfumed using MATLAB using key parameters, including path loss, network stability, network lifetime, residual energy, and packets successfully received. Results demonstrate that the proposed protocol achieves improved network stability and significantly extends the network lifetime compared to traditional approaches. Furthermore, the protocol ensures reduced path loss, efficient utilization of residual energy, and higher packet delivery rates, thereby enhancing the reliability of health data transmission. Overall, the cost function--driven design provides a robust and sustainable solution for energy-efficient communication in IoMT environments.