Transfer of serial monitor value to PLX-DAQ

Hello everyone I am trying to get the sensor value from Serial Monitor of Arduino IDE to PLX-DAQ software. I am getting the time value , but NOT the value of sensor reading . Here is the code I am using

int led=4;
int sensor=A0;
int threshold=90;
void setup() {
  pinMode(4,OUTPUT);
  pinMode(A0,INPUT);
 Serial.begin(9600);
 Serial.println("CLEARDATA");
 Serial.println("LABEL,Time,value");
 Serial.println("RESETTIMER");
}

void loop() {
  int value=analogRead(sensor);
  Serial.println("DATA,TIMER");
  Serial.println(value); 
  Serial.println(',');
  if (value>=threshold)
  {
    digitalWrite(4, HIGH);
    delay(100);
    
  }
  else
  digitalWrite(4, LOW);
  delay(100);
}

And the output on the excel I am getting Please help

output on the excel I am getting

Screenshot (2386).png|1366x768

modhu_54: but NOT the value of sensor reading .

and I bet you are not getting the time value either. The serial monitor is not a source of data.

PLX uses the PC clock to get the time, and I guess a timer as well.

I thought I was the last person in the known universe to be using the original PLX macro, but it seems that you are too and you may thus be getting no joy because you are not using Excel 2003 or earlier. If this is the case, you might look at using the newer version of PLX.

https://forum.arduino.cc/index.php?topic=437398.0

I am using the v2.11 the latest version,from this site https://forum.arduino.cc/index.php?topic=437398.0 and tried on EXCEL 2007 but still I am getting the same results. Not getting the value on excel , just timer only.

Some of your code is most certainly redundant, but I can only guess that that is actually a problem. Also note missing comma. Instead of

  Serial.println("DATA,TIMER");
  Serial.println(value);
  Serial.println(',');

You might try

  Serial.println("DATA,TIMER,");
  Serial.println(value);
Serial.println("DATA,TIMER,");[color=#222222][/color]
  Serial.println(value);

Hello I tried the changes in the code, but still having the same problem.

"println" appends an end of line character which should only appear at the completion of the data string

Serial.print("DATA,TIMER,");
Serial.println(value);