High photoconductivity of p-type nanofibers fabricated from a reducing tetracyclic macromolecule was achieved though a simple photodoping process under ambient conditions, which, together with the intrinsic high surface area and porosity of the nanofibers when deposited on a substrate, enables application in electrical vapor sensing of organic amines.