How to prevent pH-sensor from maxing out, when pump is turned on?
Likely you have some form of ground loop.
The best way to get rid of this is to either use a high isolation power supply (230-5 VDC) or use a high isolation DC-DC convertor after you existing AC-DC power supply. Units such as these have extreme isolation and should provide what you need at very low prices (&lt; $20).