The document presents a secure trust-based routing protocol (ST2A) for wireless sensor networks (WSNs), focusing on enhancing security and efficiency by using trust values for route establishment and a novel cluster head selection method. The proposed algorithm outperforms existing routing techniques, achieving up to 18% improved network lifetime and 17% better data delivery. The study emphasizes the importance of addressing the unique challenges related to security and resource limitations in WSNs, which are critical for effective Internet of Things applications.