Hi there,
So the Water Presure sensor specs are Specifications
Wokring Voltage: DC 5±0.5V
Working Current: ≤10mA (DC 5V)
Working Voltage: DC 0.5~4.5V
Working Pressure Rate Range: 0~1.2Mpa
Max. Pressure: 2.4Mpa
Destructive pressure: 3.0Mpa
Working Temperature: -20~+ 105Ԩ
Storage Temperature: -20~+ 105Ԩ
Measurement Accuracy: ±1.5%FS
Response Time: ≤2.0ms
IP65
Cycle Life: 1,000,000 pcs
Given the output looks to be Linear…:
I would MAP the output of Zero to .5v & MAX of 4.5 volts.
If you connect it to an ADC input with 14 bits resolution, 60 PSI would be equal to 6841 or 0x1AB9
here is the Analysis:
# Constants
min_output_voltage = 0.5 # V
max_output_voltage = 4.5 # V
max_pressure_mpa = 1.2 # MPa
pressure_psi = 60 # PSI
adc_resolution = 14 # bits
psi_to_mpa_conversion = 0.00689476 # 1 PSI = 0.00689476 MPa
# Convert the 60 PSI to MPa
pressure_mpa = pressure_psi * psi_to_mpa_conversion
# Calculate the corresponding voltage output from the sensor for 60 PSI
voltage_output = ((pressure_mpa / max_pressure_mpa) * (max_output_voltage - min_output_voltage)) + min_output_voltage
# Calculate the ADC value for this voltage
adc_value = (voltage_output / max_output_voltage) * (2**adc_resolution - 1)
adc_value
HTH
YMMV
GL PJ