Polyaniline (PAn) films can be used in an electrochemical and optical combination system to amplify the optical signal for dissolved oxygen (DO) detection. To further improve the sensitivity of PAn film to DO, an oxygen‐sensitive molecule, Fe(III) meso‐tetera (4‐sulfonatophenyl) porphyrin (FeTSPP) is incorporated into PAn during the film generation. Results show that, after incorporating FeTSPP into the PAn matrix, both optical and potentiometric responses to DO are improved. The optimal optical signal is obtained under the application of −2.5 μA to the modified electrode. Under this applied current, both optical and potentiometric signals show linear relations with the DO concentration within the range of 0.00–4.63 mg L−1, and the sensitivities for optical and potentiometric signals are 4.18 grayscale units mg−1 L and 13.39 mV mg−1 L, respectively.