Wireless sensor networks (WSNs) are of great importance for wireless technology. While wireless sensor networks have many advantages, they also have some drawbacks such as limited sending ability of nodes, because replaing or charging battery of sensor is impossible during its lifetime. Sending data at high power levels reduces operating power and increases energy consumption. On the other hand, sending data at low powers may lead to data loss, delay and interference. Data communication is the operation that consumes the most power. Much of the researches on wireless sensor network have focused on creating routing methods that are energy-efficient, while in addition to optimizing routing, transmission power regulation is also important. Therefore, there is a need to strategies for managing node transmission power. This paper presents an Energy-Aware routing algorithm with Transmission Power control (EATPC) for wireless sensor networks. The proposed EATPC method selects the best routes and, after adjusting the transmission power, data is transmitted from the source to the sink using measures such as average energy consumption, overhead control and step count calculation. The proposed EATPC method has been evaluated using 2NS-simulator and compared with RPAR method. The evaluation results show the efficiency of the EATPC method in terms of operating power, residual energy in the sensor node and network lifetime.