A livestock keeper has been sentenced over breaches of animal health legislation.