multiple inputs

You can print a character before the sensor data that corresponds to the sensor you're using. Then, in processing, check the first character of each line.