Answer:
Portable gas detectors work by using sensors that detect specific gases. These sensors respond to the presence of target gases by producing electrical signals, which are then processed by the device's internal circuitry to trigger alarms or warnings.