Processing code:
import processing.serial.*;
Serial myPort;
int lf = 10;
float temp =0.1;
String s =null
void setup() {
myPort = new Serial(this, "COM5", 9600);
myPort.clear();
s = myPort.readStringUntil(lf);
}
void draw() {
while (myPort.available() > 0) {
s = myPort.readStringUntil(lf);
if (s != null) {
String[] list = split(s, ",");
String sen1 = list[0];
float temp = float(list[1]);
delay(600);
}
}
}