Temperature sensors in devices ranging from cellphones to medical machines and robotics protect sensitive electronics from heat and damage. When the temperature gets too high, the device shuts off. However, the sensors have a drawback: Most of them are not flexible, and efforts to make them more pliable are costly.