Integrated implantable device for long-term glucose monitoring