#define fsrPin1 1 //Left left #define fsrPin2 2 //Left right #define fsrPin3 3 //Right left #define fsrPin4 4 //Right right int fsrReading1; // the analog reading from the FSR resistor 1 int fsrReading2; // the analog reading from the FSR resistor 2 int fsrReading3; // the analog reading from the FSR resistor 3 int fsrReading4; // the analog reading from the FSR resistor 4 void setup(void) { Serial.begin(9600); } void loop(void) { if (analogRead(fsrPin1) > 150) { Serial.print(1); } if (analogRead(fsrPin2) > 150) { Serial.print(2); } if (analogRead(fsrPin3) > 150) { Serial.print(3); } if (analogRead(fsrPin4) > 150) { Serial.print(4); } delay(10); }