The wire exits through a tight notch drilled in the box. By not cutting the short rim on the lid of the box (which is the bottom in this application), I hope I added some water resistance.