Outdoor contact sensor

I would love to have a way to know if my fence gates are open