Full Tutorial: https://circuitdigest.com/microcontroller-projects/interfacing-flex-sensor-with-arduino
A flex sensor is a low-cost, easy-to-use variable resistor that is designed to measure the amount of deflection it experiences when bent. The sensor's resistance is lowest when it's flat on the surface, increases when we bend it slowly and reaches its maximum when it's at a 90-degree angle.