A device that analyzes an image. A selectively permeable barrier layer may be provided covering the solid buffer. The sensor includes a cantilever beam with a strain gauge for measuring magnetic force. A generator is coupled to the housing. The memory includes a mixed valence conductive oxide that is less conductive in its oxygen deficient state and a mixed electronic ionic conductor that is an electrolyte to oxygen and promotes an electric field effective to cause oxygen ionic motion.