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

Just a heads-up… there’s a difference between a servo (self contained), and a servo motor - which is driven independently by a feedback loop.

I assume you’re talking about a self-contained RC style servo .