ADS1x15 Raspberry Pi

git clone https://github.com/adafruit/Adafruit_Python_ADS1x15
python setup.py

Save and run as volts.py

#!/usr/bin/python

import smbus
import Adafruit_ADS1x15

#ADC Import
adc = Adafruit_ADS1x15.ADS1115()
GAIN = 1

#ADC Sensor CH0
adc.start_adc(0, gain=GAIN)
volts = adc.get_last_result()

#Convert to Tens
volts = ((volts / 4.096 / 2) * 5 + 410) / 1000

#2 point Calibration 
#https://learn.adafruit.com/calibrating-sensors/two-point-calibration
volts = (((volts - 0.4) * 13.9 ) / 14.07) + 0.4

if volts < 3:
volts = 0
#Stop ADC Sensor
adc.stop_adc()

#Telemtry
print ('{0:0.1f}v').format(volts)