This tutorial will introduce how to integrate the Unit Tube Pressure positive and negative pressure gauge into Home Assistant to achieve real-time gas pressure monitoring.
In this tutorial, the firmware is compiled and uploaded using ESPHome 2025.12.5. If you encounter compilation/upload issues, please consider switching to this version of ESPHome.
CONTINUE.
New Device Setup.
NEXT.
ESP32-S3.
SKIP.
EDIT. We can customize device functions through the YAML file.
The GPIO pin assignment here may vary depending on the main controller used. For example, when using AtomS3R as the main controller:
sensor:
- platform: adc
pin: GPIO1
id: adc_voltage
attenuation: 11db
update_interval: 100ms
unit_of_measurement: "V"
accuracy_decimals: 3
- platform: template
name: "Pressure"
unit_of_measurement: "kPa"
accuracy_decimals: 2
update_interval: 100ms
lambda: |-
float K = 100.0;
float B = 110.0;
float voltage = id(adc_voltage).state;
float P = voltage * K - B;
return P; SAVE and INSTALL in the top right corner, and select Manual Download in the pop-up window for compilation.
Factory format(Previously Modern).
CONNECT to connect to the device.
INSTALL.
Settings -> Device & services to check the device.
Discover section.