smoke detectors primarily detect soot particles from fires and are typically installed on ceilings to monitor rising smoke, while gas detectors detect specific gases, such as natural gas, propane, or carbon monoxide, and are installed near potential gas sources or fuel-burning appliances to warn of dangerous leaks.