pH sensor measurements unstable

Do you use analog or digital sensors?

If analog, what's your ADC reference voltage? It should be very stable, not depending on Vcc noise and fluctuations.