A subcutaneous sensor system includes a sensor, a plurality of reservoirs, a plurality of pumps, a mixer provided with a plurality of mixer inlets and a mixer outlet, and a controller having an input coupled to the sensor output and a plurality of control outputs coupled to the plurality of pumps and the mixer. In certain embodiments, the system further includes an enclosure for the reservoirs, the pumps, the mixer and the controller, e.g. in the form of a skin patch or in the form of an implantable enclosure. In certain embodiments, the sensor is external to the enclosure and implanted beneath the skin tissue.