I needed a sensor for a small project that would respond to the bend. Ready solutions for me are very expensive (one sensor costs about $ 20). So I understood one of the alternative ways (homemade). I made a sensor based on optical properties. I put a light-emitting diode and a photoresistor in the tube, and depending on the bending of the tube, the photoresistor receives more or less light