ACS712 sensor programming

Dear all,
I am trying to measure the current through device. Here i am attaching my sample code with ACS 712 ,5A board. Let me know whether conversion i am doing proper or nor. Currently No device is attached to ACS model.

I have shared my output window.If it said i am planning to use below circuit . Please rectify and tell below circuit is correct or not.

int Sensor_Value;
float voltage;
float ARDUINO_ANALOG_SCALING = 0.00488758;
float Actual_voltage;
float Current_Sensor_Value;
void setup()
{
  Serial.begin(9600);
  pinMode(A0, INPUT) ;
  
}

void loop()
{
 Get_CS_Value(); 
 Serial.println("........................");
  delay(1000);
}

float Get_CS_Value()
{
  
Sensor_Value=analogRead(A0); // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):
  voltage = Sensor_Value * ARDUINO_ANALOG_SCALING;
  Actual_voltage=voltage-2.5;
   Serial.print("voltage_output is :");
  Serial.println(Actual_voltage);  
  Current_Sensor_Value=Actual_voltage*10;
  Serial.print("current sensor value is:");
  Serial.println(Current_Sensor_Value);
  return(Current_Sensor_Value);
  
}

I have made connection as shown in diagram 3 without relay. But used 6f22 pv battery with series of 2.2k resistor and LED. But there is no much difference in serial monitor window. It look exactly as without load.Please check code once . let me know what are things need to alter.

Connection.jpg

DON'T CROSSPOST!. You have been given good answers in your other thread.

Mark

But i didnt get answer for the.

1)is circuit is correct or not
2) Why i am getting same value even when i battery being attached
3) what are the changes to be made.

http://forum.arduino.cc/index.php?topic=265094.msg1870824#msg1870824
requested to reply to my thread.