So recently I made code that used two custom sensors that are connected to the analog pin A0 & A5. Schematic can be seen here (http://inmoov.fr/test-your-finger-sensor/).

const int ono = A0;
const int twe = A5;

int one;
int two;

void setup() {


void loop() {
  one = analogRead(ono);
  two = analogRead(twe);

  Serial.print(" ");


So after I follow the schematic i did the code, but the data value from the Serial Plotter of both sensors are always equal even though I was only pressing down on one sensor. So is this a code problem or the circuit? if so is there any fix for it? Thx.

The circuit that I made is like this, the sensor is NOT an FSR it is just used to represent since its a custom sensor, look at the link for more detail

This is what the values look like, so when sensor red is pressed it will rise and blue following behind but slightly lower, and when blue is pressed blue will rise and red slightly lower

third image

  • Try using pinMode(one, INPUT); and pinMode(two, INPUT); in setup() – Matej Mar 21 at 9:58
  • Ok ill try that, ill get back to you in a bit – Brilliant Purnawan Mar 21 at 10:03
  • Could you show us some of those values? – Gerben Mar 21 at 10:11
  • 1
    It sounds like a circuit problem. Care to share your circuit, not a link to some circuit you think you made? – Majenko Mar 21 at 10:42
  • Ok i edited my post – Brilliant Purnawan Mar 21 at 11:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.