Technology has now given farm gates brain as well as brawn.