An inline analyzer for a milking machine system includes an outer body having a central axis, a fluid input channel, an upper cover attached to the fluid input channel, a central portion attached to the upper cover, a lower portion attached to the central portion, and a fluid output channel attached to the lower portion, wherein the fluid input channel, the central portion and the fluid output channel each have a hollow central channel. A float portion is disposed loosely within the outer body and is free to move axially along the central axis such that milk flows around the float portion. Electrode(s) extend through an upper portion of the float portion. A battery, processor(s), memory and actuator are disposed within float portion. The actuator causes the float portion to move axially along the outer body central to regulate the flow of milk through the outer body.