Its reaction with the odour molecules changes a detector's electrical resistance, and this signal is fed into a neural net (the closest that computer technology has got to imitating the pattern-recognising abilities of networks of nerve cells) to work out what is being smelt.
The resistance of a detector changes as the polymer swells in response to its reaction with the odour molecules and thus alters the connections between the particles of carbon black.