A current sensor tells your Arduino how much current is flowing through a wire. This module uses the ACS712 Hall effect chip. The current passes through a copper path inside the chip, and the chip turns the magnetic field around that path into a voltage. It reads DC or low-voltage AC current flowing either way, and the path adds almost no resistance to your circuit. The range to pick is the one just above the most current your load draws. The 5A gives the finest reading, so it suits LED strips, small motors and battery charging. The 20A suits bigger 12V motors and pumps. As a guide, a small 12V pump drawing a few amps suits the 5A or 20A. A motor or heater drawing around 15A suits the 20A or 30A. The 30A covers loads up to 30A in coarser steps, so it suits loads of half an amp or more. The chip sets the range, so pick the one you need now.
You can use it to log how much current a motor draws, or to watch the current going into a battery as it charges. Add our 0-25V voltage sensor module and you can work out the power in watts. It runs from 5V and gives an analogue voltage, so its three header pins connect to 5V, GND and A0 on an Uno or Nano with female-to-male jumper wires. On a 3.3V board such as an ESP32, the output can rise above 3.3V, so it needs two resistors between OUT and the input pin (step 6 below). The wires you are measuring clamp into the screw terminal, and two holes let you screw the board down.
Specifications
Datasheets
Wiring & getting started
- Wire it into the circuit with the power off
Cut or unplug the positive wire between your power supply and the load. Clamp the supply end into one side of the screw terminal and the load end into the other, so all the load's current passes through the module. The negative wire stays as it was.
- Connect the header pins
VCC goes to 5V, GND to GND and OUT to A0 on an Uno or Nano. The power LED lights once the board is powered.
- Find the zero with the load off
Have your sketch average about 1000 readings of A0 when it starts and keep that as the zero. On a 5V board it comes out close to 512 (about 2.5V), but it moves a little with the USB voltage, so measure it at each start-up rather than typing in 512.
- Work out the current
Subtract the zero from each reading and divide by the sensitivity in volts per amp:
amps = (reading - zero) * 5.0 / 1023 / 0.185. Your 5A module's figure is 0.185. A reading of 550 with a zero of 512 works out to 1.0A. - Check it works
With the load off it should print close to 0A, give or take a step or two. Switch on a load you know, such as a 12V LED strip that draws 1A, and it should read close to that. If the number is right but negative, swap the two wires in the screw terminal, or flip the sign in your code. Averaging 100 or more readings each time steadies the last digit.
- Using a 3.3V board such as an ESP32
A 3.3V board needs these two resistors, because the output can rise above 3.3V. Power the module from the board's 5V or VIN pin, which carries the USB 5V. Then add two resistors from our resistor kit: 10K from OUT to the input pin and another 10K from the input pin to GND. They halve the output, so 0.5V to 4.5V becomes 0.25V to 2.25V, which sits inside the range the ESP32 reads most accurately. A 100nF capacitor from the input pin to GND steadies the reading. Read the pin with
analogReadMilliVolts(), find the zero the same way, then divide by 92.5 for your 5A module to get amps. Treat those figures as a starting point and adjust them until the reading matches a load you know or a multimeter.
Note: The screw terminal carries the full voltage of the circuit you are measuring. This module is for low-voltage circuits such as battery, solar and 12V systems, so keep it off mains wiring.

