Code Example

  Princeton_3_Sensor_plot modified from AnalogReadSerial
  Reads an analog inputs on pin 0,1 and 2 prints the result to the serial monitor in
  space seperated, 3 values per line like this. "sensorValue0 sensorValue1 sensorValue2" 
  Plots can be achieved by simply choosing Serial Plotter from the tools menu above.
  Graphical representation is available using serial plotter (Tools > Serial Plotter menu)
  Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.

  This example code is in the public domain.

// the setup routine runs once when you press reset:
void setup() {
  // initialize serial communication at 9600 bits per second:

// the loop routine runs over and over again forever:
void loop() {
  // read the input on analog pin 0:
  int sensorValue0 = analogRead(A0);
  int sensorValue1 = analogRead(A1);
  int sensorValue2 = analogRead(A2);
  // print out the value you read:
  Serial.print(" ");
  Serial.print(" ");
  Serial.println(sensorValue2); // New line next time around
  delay(100);        // delay in between reads for stability