Measuring voltage on A0 is creating noise on A1... WHY..??

I am trying to measure voltage with a voltage divider on A0 of arduino The voltage divider resistors are R1 = 2.2K & R2 = 820R

On the other side I am measuring Temperature with LM35 on A1..

Without any connection on the A0 of arduino the temperature is stable but as soon as I connect the voltage divider to the A0 there is fluctuation on the temperature... WHY...??

How to eliminate it..??

Read each input pin twice, & ignore the first reading. Gives the internal analog mux time to settle on the value you want.

CrossRoads:
Read each input pin twice, & ignore the first reading.
Gives the internal analog mux time to settle on the value you want.

How to do that…??

Can you please show me… :frowning:

value1 = analogRead(A0);
value1 = analogRead(A0);

value2 = analogRead(A1);
value2 = analogRead(A1);

just like it sounds, really.

WOW... thanks man... That really worked.... :) little crazy but its true... :)