user15699: const int GSR=A0;
int threshold=0;
int sensorValue;

void setup(){
  long sum=0;
  Serial.begin(9600);
  delay(1000);

  for(int i=0;i<500;i++)
  {
  sensorValue=analogRead(GSR);
  sum += sensorValue;
  delay(5);
  }
  threshold = sum/500;
   Serial.print("threshold =");
   Serial.println(threshold);
  }

void loop(){
  int temp;
  sensorValue=analogRead(GSR);
  Serial.print("sensorValue=");
  Serial.println(sensorValue);
  temp = threshold - sensorValue;
  }


user4143: The serial plotter requires just numbers and nothing else.
It can't understand the data in the format:
sensorValue=49

It just expects:
49

Remove the line
Serial.print("sensorValue=");

and it will start working.

15699: <pre><code>const int GSR=A0;
int threshold=0;
int sensorValue;

void setup(){
  long sum=0;
  Serial.begin(9600);
  delay(1000);

  for(int i=0;i&lt;500;i++)
  {
  sensorValue=analogRead(GSR);
  sum += sensorValue;
  delay(5);
  }
  threshold = sum/500;
   Serial.print("threshold =");
   Serial.println(threshold);
  }

void loop(){
  int temp;
  sensorValue=analogRead(GSR);
  Serial.print("sensorValue=");
  Serial.println(sensorValue);
  temp = threshold - sensorValue;
  }
</code></pre>
 4143: <p>The serial plotter requires just numbers and nothing else.</p>

<p>It can't understand the data in the format:</p>

<pre><code>sensorValue=49
</code></pre>

<p>It just expects:</p>

<pre><code>49
</code></pre>

<p>Remove the line</p>

<pre><code>Serial.print("sensorValue=");
</code></pre>

<p>and it will start working.</p>
