A Co(ii) complex of a vitamer of vitamin B6 acts as a sensor for Hg2+ and pH in aqueous media. (24th May 2016)