I am trying to connect an AC current sensor to arduino but the sensor is not working, it does not read any values of current, I tried to mesure the current going to a coffee machine, a toaster, a kettle and an air compressor, nothing worked, can someone help me?
I have attached a picture of the circuit and I a link to the AC sensor pruchsed. I think maybe I don't understand the specifiction of the sensor and that might be the problem.
You can't use that sensor on a power cord, it will always read zero.
You need to cut the power cord and connect the sensor around just one of the wires
I assume that you mean the cable containing the 2 wires that power the compressor. I was afraid that you would say that. As you will have seen from other replies that will not work because the current measured in one wire of the cable will cancel out the current measured in the other wire of the cable
As you have tried to use the sensor with multiple mains powered devices, it might pay you to make up a special test lead.
You need a lead with a mains plug on one end a mains socket at the other end, with the three conductors broken out so that you can clamp the sensor around one wire only.
You might be able to make one from a bought in mains extension lead, and carefully remove a section of the outer insulation of the cable, taking care not to damage the inner colour coded wire insulation.
Make yourself a short extension lead with a mains plug on one end and a mains socket on the other with 3 separate wires between them to allow the current clamp to be placed over one of them
You can use this to measure the current consumption of any device plugged into the lead
For ‘one off’ estimates of large household AC currents, I have occasionally resorted to opening the outside ‘meter’ box containing the incoming 240V mains supply. Then carefully timing revolutions of the spinning dial, before and after switching on the device.