This document presents a study on an energy-efficient and secure routing protocol for wireless sensor networks (WSNs), called OPEASRP, which combines load balancing and the LEACH algorithm for optimal path finding. The study highlights the challenges of battery drainage in WSNs and proposes methods to enhance network lifetime while ensuring data security against attacks. Results indicate that the proposed approach significantly reduces energy consumption and improves packet delivery ratios compared to existing methods.