Energy-Latency Improved Sensor Networks Using Mobile Agents in Textile Industry