Dangerous gas detector