This paper presents an energy-efficient task assignment and migration framework for sensor networks.