Air quality and gas detector