Smart machines are changing the way our food gets from farm to fork