May-09-2021, 03:32 PM
How are you reading the data? As long as you have some sort of iterator for each line, you can check each line for one of your data components.
for line in stream: key,value = line.rstrip().split("=") if "SENSOR COORDINATE" in key: sensor = int(value) elif "MEASURED RESISTANCE" in key: resistance = int(value) # Act on data here between receiving new lines...