Arduino UNO and ESP8266 ESP01 interfering with analog readings

I connected an Arduino UNO to a ESP8266 ESP01 using a 5v to 3.3 step down (AMS1117)

As shown here (except im using the AMS1117 instead of the 78xxl)

After this, I build a circuit for a SCT-013-050 as show here

I’m using the 5v line to connect the AMS1117 and the LM358.

After this, I uploaded a basic sketch to test the SCT-013-050

void setup() {
  Serial.begin(9600);
  analogReference(INTERNAL);
}

void loop() {
  float Irms=get_current(); 
  float P=Irms*220.0;

  Serial.print("Irms: ");
  Serial.print(Irms,3);
  Serial.print("A, Wattage: ");
  Serial.print(P,3);  
  Serial.println("W");   
}

float get_current() {
  float voltageSensor;
  float current=0;
  float sum=0;
  long time=millis();
  int N=0;
  while(millis()-time<500) { 
    voltajeSensor = analogRead(A0) * (1.1 / 1023.0); 
    current=voltageSensor*50.0; 
    sum=sum+sq(current);
    N=N+1;
    delay(1);
  }
  sum=sum*2
  current=sqrt((sum)/N);
  return(current);
}

And when using the SCT without any cable inside (no readings), I’m getting weird values:

Irms: 0.096A, Wattage: 21.225W
Irms: 0.090A, Wattage: 19.905W
Irms: 0.095A, Wattage: 20.907W
Irms: 0.091A, Wattage: 20.002W
Irms: 0.096A, Wattage: 21.037W
Irms: 0.090A, Wattage: 19.815W
Irms: 0.095A, Wattage: 20.929W
Irms: 0.093A, Wattage: 20.384W

But after removing the ESP8266, Im getting the correct values, which are 0A, 0W.

Is the some sort of interference between the ESP8266 and the analog readings? or maybe with the current delivered by the 5v line to both the AMS1117 (for the ESP8266) and the LM358?