You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extract unit conversion helper functions and document blind spot limitation
- Add getPressureConversionFactor() helper function for PSI/bar/kPa/mbar/inH2O conversions
- Add getDistanceConversionFactor() helper function for m/cm/ft/in conversions
- Refactor 3 places with duplicated pressure conversion logic to use helper
- Refactor ultrasonic distance conversion to use helper
- Document sensor blind spot limitation in README (sensors cannot detect liquid below mount height)
Co-authored-by: dorkmo <[email protected]>
Copy file name to clipboardExpand all lines: TankAlarm-112025-Client-BluesOpta/README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,8 @@ Used for sensors like the Dwyer 626-06-CB-P1-E5-S1 (0-5 PSI) mounted near the bo
102
102
-`sensorRangeUnit`: Pressure unit - "PSI", "bar", "kPa", "mbar", or "inH2O"
103
103
-**Sensor Mount Height**: Height of sensor above tank bottom (usually 0-2 inches)
104
104
105
+
**Known Limitation - Blind Spot:** Pressure sensors cannot detect liquid levels below their mount height. When the tank is empty (0 PSI), the reported level will be the sensor mount height (e.g., 2"), not 0". Mount the sensor as close to the tank bottom as possible to minimize this blind spot.
106
+
105
107
**Pressure-to-Height Conversion:**
106
108
The system automatically converts pressure to inches using these factors:
107
109
- 1 PSI = 27.68 inches of water
@@ -122,7 +124,7 @@ The system automatically converts pressure to inches using these factors:
122
124
123
125
**How It Works:**
124
126
1. 4mA → 0 PSI → 0 inches of liquid above sensor
125
-
2. Total height = 0 + 2" mount height = 2" (sensor position, not liquid)
127
+
2. Total height = 0 + 2" mount height = 2" (minimum reported value due to blind spot)
126
128
3. When tank fills: 12mA → 2.5 PSI → 69.2" + 2" = 71.2" total
0 commit comments