Previous studies have shown that the incorporation of sulfonated metallophthalocyanines into sensitive sensor materials can improve electron transfer and thus species detection. Herein, we propose a simple and easy alternative to the use of generally expensive sulfonated phthalocyanines by electropolymerizing polypyrrole together with nickel phthalocyanine in the presence of an anionic surfactant. The addition of the surfactant not only helps the incorporation of the water-insoluble pigment into the polypyrrole film, but the obtained structure has increased hydrophobicity, which is a key property for developing efficient gas sensors with low sensitivity to water. The obtained results show the effectiveness of the materials tested for the detection of ammonia in the range of 100 to 400 ppm. It is shown by comparing the microwave sensor responses that the film without nickel phthalocyanine (hydrophilic) produces greater variations than the film with nickel phthalocyanine (hydrophobic). These results are consistent with the expected results since the hydrophobic film is not very sensitive to residual ambient water and therefore does not interfere with the microwave response. However, although this excess response is usually a handicap, as it is a source of drift, in these experiments the microwave response shows great stability in both cases.