Program that establishes a multi-hop routing protocol between wireless sensor nodes