A sensor for the in vivo detection of glucose comprises: components of an assay for glucose, a readout of which is a detectable optical signal which can be interrogated transcutaneously by external optical means when the sensor is implanted in vivo and a shell of biodegradable material encapsulating the assay components whilst allowing analyte to contact the assay components, wherein the biodegradable material comprises a co-polymer having hydrophobic and hydrophilic units. A method of detecting glucose using such a sensor suitably comprises implantation of the sensor into the skin of a mammal, transdermal detection or measurement of glucose using external optical means and degradation of the biodegradable material.Linvention concerne un détecteur pour la détection in vivo de glucose qui comporte des composés dun dosage de glucose, un affichage dudit dosage qui constitue un signal optique décelable pouvant être interrogé de manière transcutanée par un dispositif optique externe, lorsque ledit détecteur est implanté in vivo, et une coque de matière biodégradable encapsulant les composés du dosage, tandis quelle permet à lanalyte de rentrer en contact avec lesdits composés, ladite matière biodégradable contenant un copolymère à unités hydrophobes et hydrophiles. Ce procédé de détection de glucose au moyen dun tel détecteur comprend limplantation du détecteur dans la peau dun mammifère, la détection ou la mesure transdermique de glucose au moyen du dispositif optique externe et la dégradation de la matière biodégradable.