Flex sensor

To get the values from the flex sensor you need a 22K resistor.

  1. void setup() {
  2.       Serial.begin(9600);
  3. }
  4.  
  5. void loop() {
  6.       int sensorValue = analogRead(A0);
  7.       Serial.println(sensorValue, DEC);
  8. }

See how the sensor can be use in a project like Bad posture by Ellen Sundh.