English
English
简体中文
日本語

Unit Tube Pressure ESPHome Component

The Unit Tube Pressure component reads positive, negative, and differential pressure data.

1. Component Overview

Item Information
Product Name Unit Tube Pressure
SKU U130
Main Function Positive and negative gas pressure measurement
Communication Interface Analog voltage
ESPHome Components adc, template
ESPHome Version Requirement 2025.12.5 and later

2. Component Description

Including Official Components

Unit Tube Pressure uses the official ADC sensor to read analog voltage, then converts it to pressure with the Template sensor. Adjust the ADC pin and conversion coefficients for your controller and calibration results.

3. Reference Example

The following example reads ADC voltage and converts it to pressure. Adjust pin, multiply, K, and B for your wiring and calibration.

yaml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
sensor:
  - platform: adc
    pin: GPIOXX
    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;
Page Tools
PDF
On This Page