A farmer is using an electronic fence to keep his livestock in a designated area.