It snaps using a tight tolerance between the lid and the base, utilising the print layer to create friction and snap. The lid has a slot to allow a dupont connector. The sensor sits inside being snuggly sandwiched by the base and lid.
Printed using 0.3mm layer height.
The author hasn't provided the model origin yet.