Hello
Do you have to use the am current sensor ?
If yes, than take some time and study the tutorials avaibable and check the given restrictions.
If not, than take some time and read the datasheets if the INA2xx familie sensors.
Have a nice day and enjoy coding in C++.