# Enviro+ pHAT problems

**URL:** <https://forums.pimoroni.com/t/enviro-phat-problems/26310>\
**Category:** Support\
**Created:** [October 4, 2024, 11:06am UTC](https://forums.pimoroni.com/t/enviro-phat-problems/26310 "2024-10-04T11:06:06Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoko999](https://avatars.discourse-cdn.com/v4/letter/y/82dd89/32.png) [@yoko999](https://forums.pimoroni.com/u/yoko999)\
**Post date:** [October 4, 2024, 11:06am UTC](https://forums.pimoroni.com/t/enviro-phat-problems/26310/1 "2024-10-04T11:06:06Z")

</div>

Hello. I am using rPi 5. I have connected pHAT sensor but something doesn’t work for me. I was following Getting Started tutorial but only what i can use is ‘lcd.py’. When i want to use weather/gas i got info that “can’t get module”. Thanks for all the help

 ![phat2](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/3/35845b821e8a49affa993c52df1730f6c031b4a6.jpeg)

---

<div class="post-metadata">

**Author:** ![peardox](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@peardox](https://forums.pimoroni.com/u/peardox)\
**Post date:** [October 4, 2024, 5:14pm UTC](https://forums.pimoroni.com/t/enviro-phat-problems/26310/2 "2024-10-04T17:14:25Z")

</div>

Most of those demos expect you to have a PMS sensor (which costs almost as much as the Enviro+)

Remove the PMS stuff (or buy one - marketing by broken demo?)

That was one of the first HATs I purchased - hardly used it 'cos the software sucks (now got around to C++ and am having much more success)

---

<div class="post-metadata">

**Author:** ![yoko999](https://avatars.discourse-cdn.com/v4/letter/y/82dd89/32.png) [@yoko999](https://forums.pimoroni.com/u/yoko999)\
**Post date:** [October 6, 2024, 7:41am UTC](https://forums.pimoroni.com/t/enviro-phat-problems/26310/3 "2024-10-06T07:41:01Z")

</div>

So if i’m understanding you correctly to use “all functionality” i need PMS sensor?

---

<div class="post-metadata">

**Author:** ![yoko999](https://avatars.discourse-cdn.com/v4/letter/y/82dd89/32.png) [@yoko999](https://forums.pimoroni.com/u/yoko999)\
**Post date:** [October 6, 2024, 10:21am UTC](https://forums.pimoroni.com/t/enviro-phat-problems/26310/4 "2024-10-06T10:21:35Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/pimoroni/original/2X/3/39423c1f9c2c0640bfbc4b726eb255bae4bc1f76.png)  
I can’t even see BME280 on 0x76

---

<div class="post-metadata">

**Author:** ![fishgotnosole](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/fishgotnosole/32/7883_2.png) [@fishgotnosole](https://forums.pimoroni.com/u/fishgotnosole)\
**Post date:** [October 6, 2024, 7:42pm UTC](https://forums.pimoroni.com/t/enviro-phat-problems/26310/5 "2024-10-06T19:42:21Z")

</div>

It may be worth trying the steps outlined here:

> [@How to autostart Enviro+ example scripts?](https://forums.pimoroni.com/t/how-to-autostart-enviro-example-scripts/25284/5):
>
> If you add the line source ~/.virtualenvs/pimoroni/bin/activate at the end of the .bashrc file located within the home folder of your login, it will enable the virtual enviroment at boot up. Hope this helps.

Might get you going. Hope so.

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [October 7, 2024, 7:55am UTC](https://forums.pimoroni.com/t/enviro-phat-problems/26310/6 "2024-10-07T07:55:36Z")

</div>

The all-in-one-enviro-mini and the all-in-one-no-pm files should run just fine without requiring any modification. You can use this pHat without the PMS sensor, it is an optional extra.  
I did have one, gave it to a friend. I don’t remember having any issues setting it up or using it. Mind you, that was on a Pi Zero, and the OS used wasn’t Bookworm.

That i2c scan is not right, that’s for sure. You should have seen the following.

- 0x76: BME280
- 0x23: LTR559
- 0x49: ADS1015  
What command di you run from terminal?

---

<div class="post-metadata">

**Author:** ![yoko999](https://avatars.discourse-cdn.com/v4/letter/y/82dd89/32.png) [@yoko999](https://forums.pimoroni.com/u/yoko999)\
**Post date:** [October 7, 2024, 8:01am UTC](https://forums.pimoroni.com/t/enviro-phat-problems/26310/7 "2024-10-07T08:01:22Z")

</div>

I was trying this ant nothing happennd :/

---

<div class="post-metadata">

**Author:** ![yoko999](https://avatars.discourse-cdn.com/v4/letter/y/82dd89/32.png) [@yoko999](https://forums.pimoroni.com/u/yoko999)\
**Post date:** [October 7, 2024, 8:04am UTC](https://forums.pimoroni.com/t/enviro-phat-problems/26310/8 "2024-10-07T08:04:09Z")

</div>

Just simply this:

- `git clone https://github.com/pimoroni/enviroplus-python`
- `cd enviroplus-python`
- `./install.sh`
- `source ~/.virtualenvs/pimoroni/bin/activate  
then i am entering example folder and trying to run some examples by python. I also installed enviro to the python. Tomorrow i will check enviro+ on Pi4. Maybe my Pi5 is “broken” or something is wrong with enviro+

---

<div class="post-metadata">

**Author:** ![alphanumeric](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/alphanumeric/32/2729_2.png) [@alphanumeric](https://forums.pimoroni.com/u/alphanumeric)\
**Post date:** [October 7, 2024, 8:24am UTC](https://forums.pimoroni.com/t/enviro-phat-problems/26310/9 "2024-10-07T08:24:09Z")

</div>

Good or bad, so far I’ve been avoiding all that virtual environment stuff. Probably not a good plan in the long run, but that’s what I’ve been doing so far.  
The Pi 5 also has the RP1 chip that interfaces with the GPIO. Not sure if that’s messing with you?  
I have one Pi 5 here, but it’s used as a Desktop PC. So far I haven’t plugged anything into it’s GPIO header.  
I have Enviro+ clones on the go here. I wanted a larger LCD display so I did a clone and just modified the examples accordingly.

Are you running the examples from terminal?

---

<div class="post-metadata">

**Author:** ![fishgotnosole](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/fishgotnosole/32/7883_2.png) [@fishgotnosole](https://forums.pimoroni.com/u/fishgotnosole)\
**Post date:** [October 8, 2024, 9:55pm UTC](https://forums.pimoroni.com/t/enviro-phat-problems/26310/10 "2024-10-08T21:55:20Z")

</div>

Just a thing to double check. Is i2c enabled in `raspi-config`?

Might explain why the SPI display is working but the i2c bits are not?

---

<div class="post-metadata">

**Author:** ![yoko999](https://avatars.discourse-cdn.com/v4/letter/y/82dd89/32.png) [@yoko999](https://forums.pimoroni.com/u/yoko999)\
**Post date:** [October 9, 2024, 9:42am UTC](https://forums.pimoroni.com/t/enviro-phat-problems/26310/11 "2024-10-09T09:42:28Z")

</div>

I got everything on (I2C). Yeasterday i was testing it on rPi 4 and still the same effect. Nothing is working. I think that my sensor is “dead”. Probably I will switch to buying BME280 and some gas sensor. Thanks for help.

---

<div class="post-metadata">

**Author:** ![fishgotnosole](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/fishgotnosole/32/7883_2.png) [@fishgotnosole](https://forums.pimoroni.com/u/fishgotnosole)\
**Post date:** [October 9, 2024, 10:04am UTC](https://forums.pimoroni.com/t/enviro-phat-problems/26310/12 "2024-10-09T10:04:46Z")

</div>

I’d suggest contacting Pimoroni support as a next step, before doing anything else. This is the [link](https://shop.pimoroni.com/pages/contact-us). 👍
