Fits an Eve Room Sensor (Affiliate link) so you can mount it to metal parts.
Pressfit, you maybe need to slightly scale it up/down.
As it's square you can insert the sensor in any direction.
Insert two 10x3mm magnets (aliExpress amazon.de affiliate links) mid print.