A sensor is a device that measures or detects a physical quantity and converts it into a signal which can be read by an observer or by an instrument.
A gas detector is a sensor that measures or detects gas concentration (other than CO or CO2). For CO or CO2 use Carbon monoxide detector or Carbon dioxide detector objects.