Bending a flex sensor to get resistance values

//When I bend the flex sensor to 180 degrees I want it to display the value around 80 kohms and when it is flat at about 30 kohms. When the flex sensor is flat it is giving me 900 kohms and it is giving me 5085 kohms at 180 degrees. Is there something off in my code?

Hi, @tomnash3
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".

This will help with advice on how to present your code and problems.

A circuit diagram of your project will help too.

Thanks....Tom.. :smiley: :+1: :coffee: :australia:

Did you get specifications of the flex sensor when you got it? Have you measured the resistance using a digital volt-Ohmeter (DVM)?
Paul