Yes.
The GPIO4 pin is attached to ADC2 ADC2 cannot be used at the same time as WIFi.
Read this, and switch to a pin that’s connected to ADC1…
Pete.