This paper exploits optimal position of the mobile sensor to improve the target tracking performance of wireless sensor networks and simultaneously localize both of the static sensor nodes and mobile sensor nodes when tracking the human motion. In our approach, mobile sensors collaborate with static sensors and move optimally to achieve the required detection performance. The accuracy of final tracking result is then improved as the measurements of mobile sensors have higher signal-to-noise ratios after the movement. Specifically, we can simultaneously localize the mobile sensor and static sensors position when localizing the human’s position based on augmented extended Kalman filters (EKF). In the algorithm, we develop a sensor movement optimization algorithm that achieves near-optimal system tracking performance. We also presented an sensor nodes management scheme in order to deduce the computation complexity when localizing the static sensor nodes. The effectiveness of our approach is validated by extensive simulations using the simulations.