A current sensor is a device that detects electric current in a wire, and generates a signal proportional to that current. The generated signal could be analog voltage or current or even a digital output.
The sensed current and the output signal can be:Alternating current input And Direct current input.