Smart farming: how technology is improving animal welfare and efficiency in agriculture