Reducing power consumption in wireless sensor networks using a novel approach to data aggregation