implemented current sensor