In this paper the authors aim to identify an efficient data aggregation protocol and further enhance it for achieving better network life time also to use this aggregation protocol for automation of an application like automation of water sprinklers. Among various data aggregation techniques cluster-based data aggregation approach is chosen. This paper also represents a simulation based comparison of two variants of a wireless sensor network protocol viz. low energy adaptive clustering hierarchy and centralized low energy adaptive clustering hierarchy. Simulation is through network simulator 2.34.