I am a stickler for details and as I was replacing my old carbon monoxide detector, I realized that the screw holes did not match. Instead of making another hole in the wall, I made an adapter. Here it is. Enjoy. I can't guarantee that it will fit your use case, but feel free to modify and repost it. I am providing the .step file as well for easy editing.
Printed in translucent PETG
Printed WITHOUT supports! Bridging allowed for printing with screw holes down. Top nipple printed just fine on Prusa MK3S+.
The author marked this model as their own original creation.