Polypyrrole based gas sensor for ammonia detection