Hi All!
So I have a pressure sensor that output a voltage reading based upon the pressure applied. How would I convert the voltage reading to actual pressure? I know that at zero PSI the A/D gives 7040 and divided by 16 should be a voltage of .440 volts. Thanks!

'************************************************* ******************
'* Name : XXXXSPEEDT2.bas *
'* Author : Ed Cannady *
'* Notice : Copyright (c) 2011 *
'* : All Rights Reserved *
'* Date : 8/29/2014 *
'* Version : 1.0 *
'* Notes : For a 18F1320 and 54AL07H2210 *
'************************************************* *******************

Define OSC 20
Define LOADER_USED 1
Include "Modedefs.bas"
include "hpwm10L.pbp"
ENABLE DEBUG

#CONFIG
__CONFIG _CONFIG1H, _HS_OSC_1H & _FSCM_OFF_1H
__CONFIG _CONFIG2H, _WDT_OFF_2H & _WDTPS_8K_2H
__CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_OFF_2L & _BORV_27_2L
__CONFIG _CONFIG3H, _MCLRE_OFF_3H
__CONFIG _CONFIG4L, _DEBUG_OFF_4L & _LVP_OFF_4L & _STVR_ON_4L
__CONFIG _CONFIG5L, _CP0_OFF_5L & _CP1_OFF_5L
__CONFIG _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H
__CONFIG _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L
__CONFIG _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H
__CONFIG _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L
__CONFIG _CONFIG7H, _EBTRB_OFF_7H
#ENDCONFIG


Define ADC_BITS 10
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 1000

ADCON1 = %11101111
TRISB = %11111111

VOLTS VAR WORD ' Volts reading
Reading var long ' What we are really reading

VOLTS = 0 ' Start with a Volts value of zero

GETVOLTS:

ADCIN 4, VOLTS

Reading = VOLTS

VOLTS = VOLTS/16
Pause 1000
GOTO GETVOLTS