void AddData(ISensor sensor, string data) { foreach (var dataLine in data.Split("\r\n")) { sensor.Add(dataLine.SplitLine()[1]); } }