Integrated current sensors are used in AC electric power systems. An integrated current sensor according to one embodiment comprises: an inductor (101), wherein an AC current passes through the inductor (101); an integrator circuit (103), the integrator circuit (103) receiving a voltage associated with the AC current; a gain control circuit (116) operationally connected to the integrator circuit (103), the gain control circuit (116) outputting a gain controlled signal; and a compensation circuit (115) operationally connected to at least two of the integrator circuit (103), the gain control circuit (116), and the inductor (101), to compensate for parameter variation induced in the gain controlled signal or in the output of the integrator circuit (103).