I painted an Iris V1 contact sensor black and used command strips to fasten it to the hinge side of the gate. It has been on there for over 3 years without any issues. I've only had to replace the battery twice.
This is on a double driveway gate 6' high by 10' wide.