A simple solution-based fabrication processes of a user-friendly PANI-based resistometric detector. Potential application of impedance spectroscopy measurements to enhance performance of polymer-based resistometric sensors. PANI-based sensors in which capacitive effects related to electrode-PANI contacts and dielectric absorption of PANI-based films are insignificant. A novel indicator sensor for livestock buildings that is able to accurately inform if the ammonia concentration is above or below 20 ppm.