Flexible sensor and manufacturing processes