As long as I press the sensor it should output 'c' and if I release the pressure it should output 'd'.
In my case if I press the sensor it gives out 'c' and 'd' and i if I release the pressure it completely stops.
I'm an absolute beginner so sorry for my sloppy explanation. The weird thing is it worked some days ago, so I'm not sure if the sensors are the problem or if I messed up the code because I made some slight adjustments for the threshhold.
Btw I'm German so 'schwellenwert' means threshhold and 'druck' means pressure.
Show us a schematic of how your have the sensor connected. Needs to be a voltage divider circuit. The sensor read will give a numeric value of 0 - 1023. What is printing? Certainly not letters.
Please do not duplicate your questions as doing so wastes the time and effort of the volunteers trying to help you as they are then answering the same thing in different places.
Repeated duplicate posting could result in a temporary or permanent ban from the forum.
Could you take a few moments to Learn How To Use The Forum
It will help you get the best out of the forum in the future.
In order to select appropriate values for "schwellenwert[]", put in a Serial.print() statement to see the actual output of analogRead(), when the FSR is pressed.