A sensor assembly (256) for detecting at least one analyte in a body fluid and a method of assembly a sensor assembly (256) for detecting at least one analyte in a body fluid are disclosed. The sensor assembly (256) comprises: at least one body mount (212) configured for attachment to a body of a user; at least one electronics unit (186) attachable to the body mount (212), having at least one electronics component (208) for one or more of controlling the detection of the analyte or transmitting measurement data to another component; wherein the body mount (212) includes a locking mechanism (216) having at least one lever (218) pivotably mounted to the body mount (212), the lever (218) being configured to lock the electronics unit (186) to the body mount (212).