I this is a guess, because you’ve not provided any code or details of which analog pins you’re using, but my guess is that you’ve fallen into the trap of using an analog pin attached to ADC2, which can’t be used at the same time as WiFi.
More info in this link…
Pete.