I use a motion sensor to turn ON the lights and not to turn it off. I have a door sensor on the bathroom as well.
If motion is active and lights are off - turn on lights
If motion is inactive for 1 minute and door is OPEN - turn OFF lights
Lights only go off when there's NO motion AND the door is OPEN. Now is somebody is just standing around perfectly still in the bathroom with the door open they have other issues.
I tweaked another person's design and made this. It turned out OK. I'm going to use it to mount some sensors in the corner of my garage doors where they are semi-protected from the elements.
I played around with this idea and found that insulated terminal spades work great. It's pretty easy to pull the connector out of the plastic and they come pretty cheap. The large end of the plastic connector just fits on the sensor. You might need a very slight bit of adhesive to hold it on if it's prone to vibrations.
I wonder if this would work the other way to detect a dumb dog waiting at the back door. I could mount it behind the decking steps and drill through a hole to detect. Lazy thing lays on the top step and doesn’t bark.
I just purchased a magnetic ball and "socket" from a company called bulbhead.com
They call it "FastBall" it works very well. Its easy to adjust, very strong and pretty low profile. The black strips on the silver magnetic ball are resilient material aiding to keep the top part in position.
I would prefer it to be 1/2 the height but its fine for my Iris V3 motion sensor.
Cost $10
I will be removing the 3M VHB "don't want to move it again ever" sticky and replacing it with Command strips. And I'll paint the black base white.
I don't know how long that link will work, but the seller is "asus1963". $7/ea with shipping, in black or white. I like your design better (ball & socket, vs. 2-axis range of motion from "asus1963"), but the eBay version 'clamps' onto the sensor, rather than being glued to the back.
I understand........ just thinking if you know the angles you wish to use I would go to Home Depot and purchase a 1" wood dowel. Cut one end the angel you want. A little spray paint and two command strips and you should be good to go.
If you wanted to get fancy you could cut that above in half and screw a round magnet to each face.
I just gorilla glue a small strong magnet to the back of them. Use a screw at the angle you want, or any metal really. works great, they are easy to remove for battery changes etc but still stay in place really well. I have 10 V2's and 10 V3's mounted all over my house this way.