The present invention relates to methods for detecting acidosis in a rumen of a ruminant and for optimizing feeding of a ruminant. The present invention also relates to a device for detecting acidosis in a rumen of a ruminant, to a use of the device for detecting acidosis in a rumen of the ruminant and to animal feed.