A medical device for detecting at least one analyte in a body fluid, the medical device comprising: • at least one analyte sensor having an insertable portion adapted for at least partially being inserted into a body tissue of a user, • at least one insertion cannula, wherein the analyte sensor at least partially is placed inside the insertion cannula; • at least one electronics unit, wherein the electronics unit comprises at least one interconnect device, wherein the interconnect device is a printed circuit board, wherein the analyte sensor is operably connected to the electronics unit; • at least one housing, wherein the housing comprises at least one electronics compartment configured to at least partially receive the electronics unit and at least one sensor compartment configured to at least partially receive the analyte sensor, wherein the sensor compartment forms a sealed compartment receiving at least the insertable portion of the analyte sensor, wherein the sealed compartment comprises at least one detachable upper cap and at least one detachable lower cap, wherein the detachable lower cap is configured for detachment before insertion, thereby opening the insertable portion for insertion, wherein the insertion cannula is attached to the detachable upper cap, wherein the detachable upper cap is configured for detachment after insertion, thereby removing the insertion cannula, wherein the sensor compartment comprises at least one intermediate component, wherein the detachable upper cap and the detachable lower cap are detachably connected to the intermediate component; wherein the electronics compartment surrounds the sensor compartment. • at least one analyte sensor having an insertable portion adapted for at least partially being inserted into a body tissue of a user, • at least one insertion cannula, wherein the analyte sensor at least partially is placed inside the insertion cannula; • at least one electronics unit, wherein the electronics unit comprises at least one interconnect device, wherein the interconnect device is a printed circuit board, wherein the analyte sensor is operably connected to the electronics unit; • at least one housing, wherein the housing comprises at least one electronics compartment configured to at least partially receive the electronics unit and at least one sensor compartment configured to at least partially receive the analyte sensor, wherein the sensor compartment forms a sealed compartment receiving at least the insertable portion of the analyte sensor, wherein the sealed compartment comprises at least one detachable upper cap and at least one detachable lower cap, wherein the detachable lower cap is configured for detachment before insertion, thereby opening the insertable portion for insertion, wherein the insertion cannula is attached to the detachable upper cap, wherein the detachable upper cap is configured for detachment after insertion, thereby removing the insertion cannula, wherein the sensor compartment comprises at least one intermediate component, wherein the detachable upper cap and the detachable lower cap are detachably connected to the intermediate component; wherein the electronics compartment surrounds the sensor compartment.