# Pressure sensor values not consistent

**URL:** <https://forum.arduino.cc/t/pressure-sensor-values-not-consistent/1391273>\
**Category:** Sensors\
**Created:** [June 24, 2025, 4:43am UTC](https://forum.arduino.cc/t/pressure-sensor-values-not-consistent/1391273 "2025-06-24T04:43:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanga](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sanga/32/1127134_2.png) [@sanga](https://forum.arduino.cc/u/sanga)\
**Post date:** [June 24, 2025, 4:43am UTC](https://forum.arduino.cc/t/pressure-sensor-values-not-consistent/1391273/1 "2025-06-24T04:43:13Z")

</div>

hi all, I have a pressur sensor as in the picture and I write the following code to read values with eps32 2432s028 shield.

```arduino
#include "HX711.h"
const int DOUT_Pin = 27; //sensor data pin
const int SCLK_Pin = 22; //sensor clock pin
HX711 pressure_sensor; 
void setup() {
	pressure_sensor.begin(DOUT_Pin, SCLK_Pin);
	pressure_sensor.set_scale(2280.f);
	pressure_sensor.tare();
}
void loop() {
  Serial.print("Pascal: ");
  pressure_sensor.power_up();
  Serial.println(pressure_sensor.get_units(),1);
}

```

unforunately I read always different value which encrease on its own from 830 to 840 Pa.  
and then if I put tube inside a glass of water I don't obtain expected different pressure:

P = density \* g \* H = 1000Kg/m^3 \* 0.1m \* 9.81 m/s^2 = 981Pa  
I obtain just 3Pa difference (passing from 830 to 833Pa and if I remove tube pressure the value remains to 833Pa and then encrease slowly on its own. Can someone help me to better use the pressure sensor?

 ![sensor](https://europe1.discourse-cdn.com/arduino/original/4X/8/4/6/84648cbda461baae81efdc725f871b0abf138db5.png)

---

<div class="post-metadata">

**Author:** ![Wawa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/wawa/32/1211303_2.png) [@Wawa](https://forum.arduino.cc/u/Wawa)\
**Post date:** [June 24, 2025, 5:43am UTC](https://forum.arduino.cc/t/pressure-sensor-values-not-consistent/1391273/2 "2025-06-24T05:43:23Z")

</div>

How do you power the HX710.  
It should be powered from VCC of the processor (3.3volt when used with an ESP).

This is a 40 KPa sensor, and might have a low resolution and drift a bit when used with those low pressures (\<1KPa). A good airtight fitting hose is also important. And air slowly desolves in water...  
Leo..

---

<div class="post-metadata">

**Author:** ![b707](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/b707/32/854321_2.png) [@b707](https://forum.arduino.cc/u/b707)\
**Post date:** [June 24, 2025, 6:29am UTC](https://forum.arduino.cc/t/pressure-sensor-values-not-consistent/1391273/3 "2025-06-24T06:29:12Z")

</div>

@sanga  
What is the model of your sensor? Do you have a datasheet for it?

---

<div class="post-metadata">

**Author:** ![TomGeorge](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/tomgeorge/32/215261_2.png) [@TomGeorge](https://forum.arduino.cc/u/TomGeorge)\
**Post date:** [June 24, 2025, 8:56am UTC](https://forum.arduino.cc/t/pressure-sensor-values-not-consistent/1391273/4 "2025-06-24T08:56:20Z")

</div>

Hi, @sanga

What model is your sensor?

Is it an absolute pressure sensor or a gauge pressure sensor?

Thanks.. Tom.... 😃 👍 ☕ 🇦🇺

---

<div class="post-metadata">

**Author:** ![Wawa](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/wawa/32/1211303_2.png) [@Wawa](https://forum.arduino.cc/u/Wawa)\
**Post date:** [June 24, 2025, 10:37am UTC](https://forum.arduino.cc/t/pressure-sensor-values-not-consistent/1391273/5 "2025-06-24T10:37:03Z")

</div>

It's a 40KPa (0.4 Bar) gauge sensor, followed by a HX710, the stripped down version of the HX711.  
No excitation voltage regulator, like a HX711 board has, so a bit more sensitive to supply noise.  
I have helped another poster with a **[fuel tank sensor](https://forum.arduino.cc/t/creating-a-fuel-gauge-using-16x-neopixels/1218344/115)** with this module, which seemed to work OK.  
Leo..

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [June 24, 2025, 11:52am UTC](https://forum.arduino.cc/t/pressure-sensor-values-not-consistent/1391273/6 "2025-06-24T11:52:55Z")

</div>

> [@sanga](#):
>
> `pressure_sensor.set_scale(2280.f);`

Where did you get that number?

I see, it's from the example code and is **totally** meaningless for your sensor.

You need to do a calibration first.

---

<div class="post-metadata">

**Author:** ![sanga](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/sanga/32/1127134_2.png) [@sanga](https://forum.arduino.cc/u/sanga)\
**Post date:** [June 24, 2025, 1:02pm UTC](https://forum.arduino.cc/t/pressure-sensor-values-not-consistent/1391273/7 "2025-06-24T13:02:10Z")

</div>

many thanks for your reply

the article is ZkeeShop 3Pcs Barometric Pressure Sensor Module 3.3-5V Liquid Water Level Controller Board 0-40KPa

I took the scale value from a tutorial  
many many thanks for your help

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [June 24, 2025, 1:08pm UTC](https://forum.arduino.cc/t/pressure-sensor-values-not-consistent/1391273/8 "2025-06-24T13:08:23Z")

</div>

> [@sanga](#):
>
> I took the scale value from a tutorial

That number is for a particular weighing scale, totally meaningless for your pressure sensor.  
To get meaningfull data from your sensor you need to do a calibration first.  
Do you need help?

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [December 21, 2025, 1:09pm UTC](https://forum.arduino.cc/t/pressure-sensor-values-not-consistent/1391273/9 "2025-12-21T13:09:01Z")

</div>

Closed on December 21, 2025, 1:09pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
