Seperating line on the serial plotter

Hi i have problem about plotting. Firstly

const int GSR=A1;
int sensorValue=0;
int gsr_average=0;
void setup(){
Serial.begin(9600);
}
void loop(){
long sum=0;
for(int i=0;i<10;i++) //Average the 10 measurements to remove the glitch
{
sensorValue=analogRead(GSR);
sum += sensorValue;
delay(5);
}
gsr_average = sum/10;
Serial.println(gsr_average);
}

so far so good and i can see the result with serial plotter clearly.

But after adding two sensor , its my code, Sensors are working i cannot see anyting from serial plotter .

#define Grove_Water_Sensor 8 // Attach Water sensor to
Arduino Digital Pin 8



#define LED 9 // Attach an LED to Digital Pin 9 (or use
onboard LED)



const int GSR=A1;



int sensorValue=0;



int gsr_average=0;



 



 



void setup() {



  
pinMode(Grove_Water_Sensor, INPUT); // The Water Sensor is an Input



   pinMode(LED,
OUTPUT); // The LED is an Output



  
Serial.begin(9600);// open serial port, set the baud rate to 9600 bps



}



 



void loop() {



  long sum=0;



  for(int
i=0;i<10;i++) //Average the 10 measurements to remove the glitch



    {



 
sensorValue=analogRead(GSR);



  sum += sensorValue;



  delay(5);



    }



  gsr_average =
sum/10;



 
Serial.println(gsr_average);



 



  int sensorValue;



  sensorValue =
analogRead(0);   //connect Steam sensors
to Analog 0



 
Serial.println(sensorValue); //print the value to serial



  delay(200);



   /* The water sensor
will switch LOW when water is detected.



   Get the Arduino to
illuminate the LED and activate the buzzer



   when water is
detected, and switch both off when no water is present */



   if(
digitalRead(Grove_Water_Sensor) == LOW) {



     
digitalWrite(LED,LOW);



     
Serial.println(LOW);



   }else {



     
digitalWrite(LED,HIGH);



     
Serial.println(HIGH);



   }



}

Its output from serial plotter

How can i seperate steam line and gsr line Can you help me?

An example sketch to output several waves at the same time on Serial Plotter:

const uint16_t SinSize = 256;  // A power of 2
double sine[SinSize];

void setup() {

  Serial.begin(250000);

  sine[0] = 0.0000;
  for (int i=0; i<SinSize; i++) {
    sine[i] = 50 * ((sinf(i * 2 * PI / (SinSize-1)))+1);
  }
}

void loop() {
  uint32_t var;
  static uint16_t i;

  delay(5);
  i = (i + 1) & 0b11111111;         // Discard all bits above SinSize
  Serial.print((int)sine[i]);       // Print waveform

  Serial.print(" ");                // print a blanck
  var = (i + SinSize/4) & 0b11111111;
  Serial.print((int)sine[var]);     // Print waveform

  Serial.print(" ");                // print a blanck
  var = (var + SinSize/2) & 0b11111111;
  Serial.println((int)sine[var]);   // Println waveform

}

i have done but it doesnt change :frowning:

No, you don't !

Try a comma between numbers.

#define Grove_Water_Sensor 8 // Attach Water sensor to Arduino Digital Pin 8
#define LED 9 // Attach an LED to Digital Pin 9 (or use onboard LED)
const int GSR=A1;
int sensorValue=0;
int gsr_average=0;


void setup() {
   pinMode(Grove_Water_Sensor, INPUT); // The Water Sensor is an Input
   pinMode(LED, OUTPUT); // The LED is an Output
   Serial.begin(9600);// open serial port, set the baud rate to 9600 bps
}

void loop() {
  long sum=0;
  for(int i=0;i<10;i++) //Average the 10 measurements to remove the glitch
    {
  sensorValue=analogRead(GSR);
  sum += sensorValue;
  delay(200);
    }
  gsr_average = sum/10;
  Serial.print(" ");   
  Serial.println(gsr_average);

  int sensorValue;
  sensorValue = analogRead(0);   //connect Steam sensors to Analog 0
  Serial.print(" ");   
  Serial.println(sensorValue); //print the value to serial
  delay(200);
   /* The water sensor will switch LOW when water is detected.
   Get the Arduino to illuminate the LED and activate the buzzer
   when water is detected, and switch both off when no water is present */
   if( digitalRead(Grove_Water_Sensor) == LOW) {
      digitalWrite(LED,LOW);
      Serial.println(LOW);
   }else {
      digitalWrite(LED,HIGH);
      Serial.println(HIGH);
   }
}


I have …

Thanks for using code tags for the code!
If You also use "Autoformat", or Ctrl T, in the IDE before copying the code to post it will look really beautiful and a lot easier to read.

wildbill:
Try a comma between numbers.

Which numbers the delay one ?

Serial print a comma between the two readings.

wildbill:
Serial print a comma between the two readings.

Thank u so much solved :sob: