The invention relates to a preparation method of a flexible gas sensor for a fabric. The preparation method comprises the following steps of 1, selecting an area on the fabric as a sensor
processing area, 2, preparing a
coating solution according to the
mass ratio of
alcohol-soluble phenolic resin to
poloxamer being larger than 1: 2 and smaller than or equal to 2: 1, the
mass ratio of the sum of the
mass of the
alcohol-soluble phenolic resin and the mass of the
poloxamer to absolute ethyl
alcohol being 1: 4, 3, placing the
coating solution in a vacuum box for degassing treatment, spin-
coating the sensor
processing area of the fabric with the degassed coating solution, and placing the fabric spin-coated with the coating solution in a
vacuum drying box for vacuum heating and
drying, 4, ablating the area, spin-coated with the coating solution, of the dried fabric by using a
carbon dioxide laser to obtain
porous carbon, and respectively adhering
electrode plates to two ends of the area where the
porous carbon is located. The gas sensor is combined with the fabric, so that the flexibility and the air permeability of the fabric are kept, and the manufacturing cost of the intelligent protective clothing is reduced.