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

When I am using this code, I am not getting a stable position for servo gripper. The 2 fingers of gripper are vibrating . can anyone please help??