(An improved scheme method of wireless sensor network is introduced. The method divides sensor nodes into groups by grouping sensor nodes and nodes on the basis of GAINZ software platform and setting the network grouping that each node and node can communicate with. different netgroups to terminate their functionality)