by measuring the current intensity