Enviroplus GPIO24: not found on Pi Zero 1.1

Hey -
I’ve come across a small problem with the enviroplus and its libraries. I was looking to use the enviroplus with my old raspberry pi Zero WH and got the following error when trying to use the gas sensor:

$ python gas.py 
2024-12-02 03:13:05.162 INFO     gas.py - Print readings from the MICS6814 Gas sensor.

Press Ctrl+C to exit!


Woah there, suitable gpiochip not found!
  ❌  GPIO24: not found - /dev/gpiochip0 (pinctrl-bcm2835)!

Below is some more info on my setup:

$ cat /sys/firmware/devicetree/base/model
Raspberry Pi Zero W Rev 1.1
$ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
~/enviroplus-python/examples $ which python
/home/pi/.virtualenvs/pimoroni/bin/python
$ python
Python 3.11.2 (main, Sep 14 2024, 03:00:30) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

Could the issue be that the code in the enviroplus python libraries is focused on raspberry pi 4 and 5 and not the old Pi Zero?
The temperature, humidity and light sensors all work as expected, its only the gas sensor is not working currently.
Please let me know if more info is needed.
Thanks!

Do you have the optional PMS5003 Particulate Matter Sensor plugged in?
If not, avoid the examples that use it. ;)

Nope! I used to have a nova SDS011 connected to that same Pi Zero and it worked without issues

The PMS5003 Particulate Matter Sensor is the gas sensor. That error is telling you it couldn’t find the gas sensor. I have used a Pi Zero with an Enviro + with no issues.

ah right ok makes sense! I’ve ordered it now :) thanks for pointing it out!

1 Like