Optical devices for the detection of cyanide in water based on ethyl(hydroxyethyl)cellulose functionalized with perichromic dyes.