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 generated signal can be then used to display the measured current in an ammeter, or can be stored for further analysis in a data acquisition system, or can be used for the purpose of control.