We believe the immunosensor developed in the current study could be a promising tool for the rapid assessment of mastitis by detecting milk IL-6 in dairy cows. Here, IL6 is linked to mastitis.