A sensor assembly (226) for detecting at least one analyte in a body fluid, a sensor patch (134) for use in a sensor assembly (226), an electronics unit (188) for use in a sensor assembly (226) and a method for producing a sensor assembly (226) are disclosed. The sensor assembly (226) comprises:at least one sensor patch (134), having at least one body mount (136) configured for attachment to a body of a user andat least one sensor (110) for detecting the at least one analyte in the body fluid, the sensor (110) having at least two electrodes (114) configured for detecting the analyte, the sensor (110) further having at least two sensor contacts (116) for electrically contacting the electrodes (114)wherein the sensor patch (134) comprises a patch housing (138) with a patch bayonet contour (140)at least one electronics unit (188) attachable to the body mount (136), having at least one electronics component (200) for one or more of controlling the detection of the analyte or transmitting measurement data to another component, wherein the electronics unit (188) further comprises an electronics unit housing (202) having an electronics unit bayonet contour (204)wherein the patch bayonet contour (140) and the electronics unit bayonet contour (204) in conjunction form a bayonet connector (228) configured for establishing a releasable mechanical connection between the electronics unit (188) and the sensor patch (134).