How to control a servo motor using a PID control with input from current sensor. I am not so proficient in arduino and in coding so can anyone please help me. I want to create a closed loop using pid for controlling servo with current sensor acs70331

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).