A medical device (110) for detecting at least one analyte in a body fluid is disclosed. The medical device (110) comprises:• at least one analyte sensor (112) having an insertable portion (114) adapted for at least partially being inserted into a body tissue of a user,• at least one insertion cannula (116), wherein the analyte sensor (112) at least partially is placed inside the insertion cannula (116);• at least one housing (118), wherein the housing (118) comprises at least one sensor compartment (120), wherein the sensor compartment (120) forms a sealed compartment (122) receiving at least the insertable portion (114) of the analyte sensor (112), wherein the sealed compartment (122) comprises at least one detachable upper cap (124) and at least one detachable lower cap (126), wherein the detachable lower cap (126) is configured for detachment before insertion, thereby opening the insertable portion (114) for insertion, wherein the insertion cannula (116) is attached to the detachable upper cap (124), wherein the detachable upper cap (124) is configured for detachment after insertion, thereby removing the insertion cannula (116); and• at least one electronics unit (134), wherein the analyte sensor (112) is operably connected to the electronics unit (134), wherein the electronics unit (134) comprises at least one interconnect device (136) with at least one electronic component (142) attached thereto, wherein the interconnect device (136) fully or partially surrounds the housing (118).