Distributed storage protection in wireless sensor networks