Use a M3 screw to mount the sensor.
The outer diameter is Ø21mm.
I have used the sensor for my clubs g scale (LGB) indoor layout to control some signals
The author hasn't provided the model origin yet.