I'm working on Home energy monitoring, and I want to mesure the alternative current witch sensor between ACS712 and YHDC SCT-013-000 should I use?
You didn't provide links so I just took the first Google match I found. The YHDC is not a sensor by itself, it's just a non-invasive clamp to be able to measure the current. You need additional hardware for that. The ACS712 is hall-effect-based linear current sensor chip that must be integrated into the circuit to be measured.
As you didn't specify your requirements we cannot give you a recommendation of which part to use. Where do you want to install that part? How do you plan to measure with it? What kind of current do you want to measure? What range is that current in? Do you control the circuit?
My project consist to calculate the power that a home can consume, provided by a PV panel, Batteries and the grid. I Asked before about the sensor that I can use for the the DC part( in other topics), so i'm using ACS758 current sensors to mesure the current of the batterie and the panels, but for the AC part I found based on my rescherch that th YHDC SCT-013-000 is more used when it's come to mesure an alternitave current, and that's make me confused.
The range of current is 30A.
That answered one of my questions. What about the others? You have to provide the information.
I want to instal it on AC phase of the grid that provide the home with energy. To mesure an Alternatif current aroud 30A using the sensor, to calculate the power consumed with an arduino.
I sorry if I was'nt clear enought
The disadvantage to the ACS712 is that is invasive. You have to break into the circuit to make it work.
The advantage to the current transformer is the opposite, it is non-invasive, but only works for AC.
You have listed the SCT-013-000 which is a Amp In/mA out. I would look at the SCT-013-005 (5A in per 1V out, 25A range) or the SCT-013-010 (10A in per 1V out, 50A range). Those two devices could be connected to the Arduino analog pins. Providing you don't draw more current and produce more voltage than the pins can handle.
Thank you so much. So if i'm using it for AC it, the current transformer is better?
Have a look at openenergymonitor.org, in particular the firmware for the emonTx on GitHub shows how to get voltage and current measurements then calculate power.
I want to instal it on AC phase of the grid that provide the home with energy.
I don't know where you live. Where I live (Switzerland) such modifications are not allowed. Even if they are allowed where you live I strongly discourage you to do the modifications as you've proven that you don't know enough about electric power and how to handle it, so modifying these circuit may be lethal!
Thank you for the information, I looked at the openenergymonitor and it's so helpful, as I think it's better to use CT. As you said pylon using current sensor and integration is more dangerous, and I don't know if here in Morocco is allowed to this modifications. So it's settled using CT is more safe.