Well to detect current you can do a bunch of different techniques that include shunting, hall effect, and comparators. To use a shunt resistor you are basically doing a difference measurement from the one side of the shunt to the other and do calculations based on the known resistance. A hall effect sensors can be either stand alone or in an IC. Basically you put the sensor right next to the current conduction path and it will translate the magnetic field to a voltage output that is correlated to the current level. There are plenty of examples that a search will yield. Then there are other routes that have built in current capability in relays, FETs, transformers, comparators, dedicated ICs. You can pretty much go to digikey and put in current sensor and it will give a bunch of devices.