using an ionic current sensor