you can use mannasim package it has been tested to work with ns2.29 as well as ns2.34
Husam > Date: Thu, 8 Nov 2012 16:04:32 +0530 > From: gayu0...@gmail.com > To: ns-users@ISI.EDU > Subject: [ns] wsn ns2 code > > > i need basic code for sensor networks. how to define mobile sensor nodes > and attach it to base station.