GOT IT !! how to read 12 or more volts with ads1115 16 bit adc

I posted a question the other day how to read 15 volts with ads1115 16 bit adc

well i figured it out
these guy where great and tried to help but i just wasn't getting it so i worked and worked
until i GOT IT !!
MUST have digital multi meter !!!

  1. connect max voltage to 100k precision pot adjust pot down to adc allowable voltage remember that voltage

  2. divide your max battery voltage by result adc input voltage take result from reading multiply by result
    of your max battery voltage by result adc input voltage..and bingo !! you will get correct result

i was using a 20x4 I2C lcd with an ATmega328p

#include <math.h>
#include <Wire.h>
#include <Adafruit_ADS1015.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x3f,20,4);
Adafruit_ADS1115 ads(0x48);
float Voltage2 = 0.0;
float Voltage = 0.0;
int outputPin= 0;

void setup(void) 
{
 
  lcd.backlight();
  lcd.init(); // initialize the lcd 
  lcd.init();
  pinMode(8,OUTPUT); 
  pinMode(7,OUTPUT); 
  
  ads.begin();
}

void loop(void) 
{
  
  float adc0;  // we read from the ADC, we have a sixteen bit integer as a result
  //float adc1;
  adc0 = ads.readADC_SingleEnded(0);
  Voltage = (adc0 * 0.1875)/1000;

 

  lcd.setCursor(0,1);
 Voltage=Voltage*1.688;
  lcd.print("Voltage: ");
  lcd.print(Voltage,4);  
  
  delay(500);
}