The continuous search for novel materials to meet the requirements of modern technological applications has led to the widespread use of polyaniline (PANI) composites for sensing purposes. Although research has been carried out on both chemical sensors using PANI/polymer composites and chemical sensors with impedimetric/capacitive transduction using PANI composites, there is still a gap in the use of PANI/polymer composites in impedimetric and capacitive transduction platforms for pH sensing. In this study, the influence of composite thin films consisting of PANI and poly(methyl methacrylate) (PMMA) on the sensitivity and linearity of pH sensors based on electrochemical impedance and capacitance spectroscopy (EIS/ECS) was evaluated. The sensitivity and linearity of the devices showed a dependence on the polymer content. For PANI:PMMA equal to 30:70, the EIS and ECS sensitivity reached 12.6 ± 2.7 and 18.7 ± 4.9 %/pH, respectively, after reaching its minimum value for the 50:50 sample. Similarly, the linearity values for the 30:70 sample were 92.7 % and 99.8 % for EIS and ECS, respectively. We were able to encapsulate the PANI in the PMMA matrix, which improved the control of ion diffusion and analyte access to the active redox quinoid rings on the PANI. As a result, the saturation effect of the polymer was reduced. By adjusting the relative content of PANI and PMMA, the structure and properties of the composite can be controlled, directly affecting the sensor parameters. These materials have potential applications in sensors for various fields such as food, biomedical and environmental monitoring, with the ability to tailor their properties for optimal response.