Abstract: Wireless sensor nodes typically have short memory and battery life. This limitation requires powerful algorithms that can be used to reduce power consumption. The main energy is consumed when sending data. Some of the energy is spent processing data. This document introduces another approach to reduce energy consumption. We consider both shipping and handling charges. So, it uses short range and data compression to reduce power consumption. We designed and implemented TARF, a robust trust-aware routing framework for dynamic WSNs. Without strict time synchronization or known geographic information, TARF provides reliable and energy efficient routes. Most importantly, TARF has proven effective against malicious attacks created by impersonators. TARF's robustness is verified through extensive evaluation using both simulations and demonstration experiments on large-scale WSNs under various scenarios.