This document presents a trust-based routing protocol for mobile ad hoc networks (MANETs) and wireless sensor networks (WSNs) to improve security. The protocol maintains a trust factor for each node based on its successful participation in data transmissions. During route discovery, nodes select paths with higher cumulative trust factors. The destination node chooses the path with the highest trust potential to reply. Simulation results show the protocol improves the trustworthiness of discovered paths compared to other protocols. Future work will investigate directly penalizing nodes that do not participate or are malicious to further enhance security.