Setting ADS1115 PGA

Good morning,

I have an NCD 1 Channel 4-20 mA Current Loop Receiver 16 Bit ADS1115 I2C Mini Module I am trying to interact with via a Particle Electron.

I am using the control everything library recommended in an older thread on this forum.

Per the product description on NCD, 4 mA should read approx 6430 and 20 mA should read approx 32154. However, using the above library, I am getting 2100/10493 respectively.

I believe the issue is that the PGA is not set correctly. However, the library does not appear to have a way to set the PGA. Other libraries (Arduino, Adafruit) do, but I haven’t been able to adapt those to my current needs (lack of knowhow).

Can someone advise on how I might set the PGA for the ADS1115 using the Particle IDE?

Thank you!