Hi there!
So I have a simple code which uses a flex sensor, whose resistivity increases when bend.
const int flexPin0 = A0; //pin A0 to read analog input
int value0;
void setup(){
Serial.begin(9600);
pinMode(flexPin0,INPUT);
}
void loop(){
value0 = analogRead(flexPin0); //Read and save analog value from
Serial.print (value0);
}
What I'm trying to understand is what is actually the value value0 (which shows around 250-300)? Is it the resistance of flex sensor but mapped onto 1024 bits? If so, why does it decrease when bend?
Tq for your help.