Minimizing interference in wireless sensor networks