A reference electrode made of a platinum-, mix-oxide or other with stabile potential, is electrically isolated led into a pipe system, where a corrosion preventing plant is mounted, where the measured galvanic current between thread and pipe system is an expression of the corrosion protection, because a decreasing current in the cell confirms the effect. By simple electronics, you can use the signals as steering parameter for the treatment intensity by means of periodic measurements. The corrosion protection plant can be an electrolysis plant or a chemical dosing plant.