This document presents the Energy Saving via Opportunistic Routing (ENS_OR) algorithm designed to optimize energy consumption in one-dimensional wireless sensor networks (WSNs). The algorithm enhances network lifetime by selecting relay nodes based on their residual energy and distance to the sink, employing a strategy that prioritizes energy efficiency during data relay. Extensive simulations demonstrate that ENS_OR significantly outperforms existing routing protocols in terms of energy savings and network connectivity.