This document proposes a power-aware routing algorithm called Dynamic Path Switching (DPS) for ad hoc networks to enhance network lifetime by adapting routing paths based on node energy levels. The algorithm is integrated into the Zone Routing Protocol (ZRP) and aims to prevent node failure and reduce energy consumption through power management techniques. Key concepts include dynamic path adjustment and transmission power control based on distance, supported by simulations to validate the effectiveness of these methods.