Data fusion method in wireless sensor networks