The invention discloses a liquid level adjustable pipeline suitable for on-line monitoring of
fresh milk, the liquid level adjustable pipeline comprises a main body pipeline, the main body pipeline is also provided with an upper monitoring port and a lower monitoring port, the upper monitoring port is provided with a shading unit, and the shading unit comprises a shading sheet; the main body pipeline is provided with a lower installation
pipe opening formed by extending outwards at the lower monitoring opening, a light-transmitting unit is arranged at the lower monitoring opening and comprises a light-transmitting piece and a small magnetic ring, and the liquid level
control system comprises a large magnetic ring coupled with the small magnetic ring in a magnetic attraction mode and a driving unit. The small magnetic ring drives the light-transmitting piece to synchronously move in the axial direction of the lower installation
pipe opening in the moving process. The light-transmitting piece is driven through
magnetism between the large magnetic ring outside the pipeline and the small magnetic ring inside the pipeline, dynamic adjustment of the liquid level height is achieved, and detection errors caused by flow velocity fluctuation are avoided. The height of the light-transmitting piece can be rapidly increased when the dairy cow is replaced, so that residual liquid is rapidly discharged, and the cross influence of different batches of
fresh milk is avoided.