Antibiotics are nowadays used and abused worldwide in common veterinary practice to treat diseases, prevent infections, and promote animal's growth. Drug resistance occurrence is a relevant phenomenon that can inactivate the antibiotic. Moreover, antibiotics used for animals are also found in milk and it poses serious health risks to humans. Another negative effect is related to milk processors since antibiotics cause detrimental effects on cheese and yogurt starter bacteria. Given its consumption as both beverage and derivatives, milk is one of the most regulated products in food industry. Nowadays several commercial tests are available to investigate antibiotics in milk, but they generally provide a qualitative result, require bulky procedure, and are time consuming. In this paper, we investigate the use of a chromogenic cephalosporin to quantify the concentration of cloxacillin-a -lactam difficult to be detected by using "cowside" screenings which is the drug of choice in the method of mastitis control. The proposed measurement method and prototype have been demonstrated to be able to detect cloxacillin in milk at concentrations lower than the MRL set by the European Commission. Moreover, they are also able to detect the illegal practice of using -lactamase to degrade -lactams in milk.