This document presents a consensus-based data aggregation technique aimed at conserving energy in wireless sensor networks (WSNs), which are critical for monitoring large volumes of data. The proposed method modifies the low-energy adaptive clustering hierarchy (LEACH) protocol to reduce data packet size and enhance network lifetime through efficient data transmission at the cluster head level. Key findings demonstrate significant improvements in energy conservation and operational lifespan of sensor nodes compared to standard LEACH protocol.