Colision avoidance and energy efficient protocol solutions to the distributed system of wireless sensor networks