I dont think there is any library for the current sensor. It just gives analog values(the same value of current shown in power supply.according to the value of current given by the current sensor the motor has to move and the position must be maintained using pid).