depending on the type of farm it is beams might not be suitable,for contacts I'd use roller shutter contacts glanded either into a conduit box or small ip rated jb,but I'd also look at installing all cables in heavy duty plastic conduit due to mice rats etc which will eat any exposed cable more so in a farm environment where they are plenty