Outdoor-rated gate sensor

I don’t think the waterproof box is necessary. I’ve had an Iris V1 contact sensor on my gates for almost 5 years with no issues.