Wireless sensor networks are often di±cult to program and unable to adapt to a changing environment. Mobile agent middleware promises to address both concerns by providing higher-level programming abstractions and the ability to in- ject new agents into a preexisting network. The unique char- acteri