Arduino + WiFi shield, rubbish in ADC

Yes. WiFi shield works, recieves and transmit data well. Ultra sound sonar works well. But together it work incorrectly.

Today I tied to supply variable resistor to ADC. Photo in attachements.

When the wifi isn’t suplied ADC read data corectly. I just increase resistance on my resistor. You can see graph in attachements, everry thing is liner everything is ok. But! When wifi is on and initialized and connected to network. ADC read looks like 2nd graph. I think it is problem in library, maybe it use some port, pins or smth else.