circuit diagram of smoke detector/gas detector