Autonomous deployment and repair of a sensor network using an unmanned aerial vehicle