# Enviro pHAT pressure

**URL:** <https://forums.pimoroni.com/t/enviro-phat-pressure/4423>\
**Category:** Support\
**Created:** [March 27, 2017, 6:24pm UTC](https://forums.pimoroni.com/t/enviro-phat-pressure/4423 "2017-03-27T18:24:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![kertib](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@kertib](https://forums.pimoroni.com/u/kertib)\
**Post date:** [March 27, 2017, 6:24pm UTC](https://forums.pimoroni.com/t/enviro-phat-pressure/4423/1 "2017-03-27T18:24:28Z")

</div>

I have two Enviro pHAT (EnviropHAT and EniropHAT2) The ADC male header is soldered on the EnviropHAT.

![](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/9/99a8eb6866a47a16e30562e38fbef585cafcae4d.jpg)

The EnviropHAT measures negative (!) and too low peressure:

pi@EnviropHAT:~ $ python  
Python 2.7.9 (default, Sep 17 2016, 20:26:04)  
[GCC 4.9.2] on linux2  
Type “help”, “copyright”, “credits” or “license” for more information.

> > > from envirophat import weather  
> > > print weather.pressure()  
> > > -1999.38893246

EnviropHAT2 measures correct pressusre:  
pi@EnviropHAT2:~ $ python  
Python 2.7.9 (default, Sep 17 2016, 20:26:04)  
[GCC 4.9.2] on linux2  
Type “help”, “copyright”, “credits” or “license” for more information.

> > > from envirophat import weather  
> > > print weather.pressure()  
> > > 101146.517167

What is the problem?

Best regards,  
Balazs

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [March 31, 2017, 9:37am UTC](https://forums.pimoroni.com/t/enviro-phat-pressure/4423/2 "2017-03-31T09:37:48Z")

</div>

This is odd- do you get any change in the pressure value if you (gently) press upon the sensor?

---

<div class="post-metadata">

**Author:** ![kertib](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@kertib](https://forums.pimoroni.com/u/kertib)\
**Post date:** [March 31, 2017, 10:29am UTC](https://forums.pimoroni.com/t/enviro-phat-pressure/4423/3 "2017-03-31T10:29:58Z")

</div>

I work in a laboratory so I put both Enviro pHAT + zero + power bank trio into a vacuum desiccator [https://en.wikipedia.org/wiki/Desiccator](https://en.wikipedia.org/wiki/Desiccator)) and made vaccum from 101kPa to 90kPa .The Enviro pHAT2 meausred increased pressure, Enviro pHAT pressure change was not significant.

I have noticed that the soldering is not perfect, as shown in the picture.

 ![](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/e/e32ad34425fae0864822fb53c925631ad0aff32a.jpg)

It could cause the problem?

Best regards,  
Balazs

---

<div class="post-metadata">

**Author:** ![gadgetoid](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/gadgetoid/32/13_2.png) [@gadgetoid](https://forums.pimoroni.com/u/gadgetoid)\
**Post date:** [March 31, 2017, 2:03pm UTC](https://forums.pimoroni.com/t/enviro-phat-pressure/4423/4 "2017-03-31T14:03:24Z")

</div>

It’s _possible_ that imperfect soldering could be the problem, but unlikely. I suspect somethings gone wrong with the barometer. I’ve seen your support email, and will make sure it’s assigned to someone who can send you a replacement.

---

<div class="post-metadata">

**Author:** ![Richard238](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard238](https://forums.pimoroni.com/u/Richard238)\
**Post date:** [November 17, 2020, 5:15pm UTC](https://forums.pimoroni.com/t/enviro-phat-pressure/4423/5 "2020-11-17T17:15:53Z")

</div>

Out of curiosity, and the opportunity to add this to my Initial State dashboard, I tried pressure from my Envirophat:.

```
from envirophat import weather
print weather.pressure()
## 101628.297734

```

101628…! What on earth?!

Any ideas, please.  
Thank you.

---

<div class="post-metadata">

**Author:** ![Shoe](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@Shoe](https://forums.pimoroni.com/u/Shoe)\
**Post date:** [November 17, 2020, 8:19pm UTC](https://forums.pimoroni.com/t/enviro-phat-pressure/4423/6 "2020-11-17T20:19:40Z")

</div>

In [the envirophat guide](https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-enviro-phat) they use the line:

`print(weather.pressure(unit='hPa'))`

Which prints out a reasonable hPa value, so I can only presume that the raw value without the unit parameter is pascals, not hectopascals.

---

<div class="post-metadata">

**Author:** ![lexfiend](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/lexfiend/32/7136_2.png) [@lexfiend](https://forums.pimoroni.com/u/lexfiend)\
**Post date:** [November 18, 2020, 6:53am UTC](https://forums.pimoroni.com/t/enviro-phat-pressure/4423/7 "2020-11-18T06:53:21Z")

</div>

1 standard atmosphere is 101,325 pascals, so that’s not exactly unexpected.

---

<div class="post-metadata">

**Author:** ![Richard238](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard238](https://forums.pimoroni.com/u/Richard238)\
**Post date:** [November 21, 2020, 2:53pm UTC](https://forums.pimoroni.com/t/enviro-phat-pressure/4423/8 "2020-11-21T14:53:20Z")

</div>

I was already using `(weather.pressure(unit='hPa'))`  
But Initial State was showing the wrong figure.

Changed it in IS to `"=math.round(convert([Pressure],"pa","hpa"),0)"`, and all is good.

Thank you.
