The sensor is the key to the whole thing. The chemistry behind it is simple: an ultrafine gold wire is covered with glucose oxidase, an enzyme derived from the bacteria Penicillium notatum.