pH sensor measurements unstable

Yes.

Only if you want to destroy the fast changes in a signal.

Close to the components, that means sensors and other boards.

Electronics is a bit like using LEGO, when the build gets big you have to do extra things to make it stand up.