ADS1015, cannot measure full range

Hi, I have recently bought an ADS1015 adc.

I'm using an Arduino Nano for this purpose.

The wiring is set up like that:

  • and ADS1015 scl,sda connected to arduino scl,sda
  • ground and 5v from ads1015 to ground and 5v of arduino
  • a potentiometer between gnd and 5v, middle pin of potentiometer to analog input 0 of ads 1015,

I'm using the adafruit ADS1x15 library, the gain is set to default - 2/3. Mode - singleended.

I expected to get a number between 0-4096 for a voltage range of 0 - 5v since this adc has a 12 bit resolution, but the number I actually got is 0 to around 1500.

Is there something I'm missing in software, or maybe I have connected something wrong.

Missing actual software indeed. And actual circuit diagrams.

Are you by any chance using it in differential mode rather than single ended?