SCT013-30 current tranformer with ESP32(Urgent required)

I am creating a current sensor using Current tranformer using sensor SCT013 30A/1V and ESP32. My current values are not coming by putting calculate calibrated value i.e 30 in current function of Emon library and values are coming using calibrated value as 4.75. I have connected the sensor with pin D34 of ESP32
I am attaching code as well as circuit can anyone help me out.
Code:
#include <EmonLib.h>

// EmonLibrary examples openenergymonitor.org, Licence GNU GPL V3

#include “EmonLib.h” // Include Emon Library
EnergyMonitor emon1; // Create an instance

void setup()
{
Serial.begin(9600);

emon1.current(34, 4.75); // Current: input pin, calibration.
}

void loop()
{
double Irms = emon1.calcIrms(5000); // Calculate Irms only 1480 is number of samples
double Vrms = 220.0;

Serial.println(“Voltage = 220V”);
Serial.print("Current = ");
Serial.print(Irms); // Irms
Serial.println(“A”);
Serial.print(“Power =”);
Serial.print(VrmsIrms0.8);
Serial.println(“W”);
Serial.println();

delay(5000);

}

Too urgent to say ‘please’? This is not a helpdesk.

You tagged this as esphome, but your code is not esphome.

CT clamp docs for esphome are here CT Clamp Current Sensor — ESPHome

4 Likes