Hi all,
i was trying to measure the co2-ppm with the help of your guide.
i did:
-
pip install mh-z19
and then:
-sudo python
>>> import mh_z19
>>> mh_z19.read()
after that nothing happens until i press CRTL+C end get this error-massage:
>>>mh_z19.read()
^CTraceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/mh_z19/__init__.py", line 69, in mh_z19
result=ser.write(b"\xff\x01\x86\x00\x00\x00\x00\x00\x79")
File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 622, in write
abort, ready, _ = select.select([self.pipe_abort_write_r], [self.fd], [], None)
KeyboardInterrupt
{}
>>>
my python-version is:
Python 3.9.2 (default, Mar 12 2021, 04:06:34)
[GCC 10.2.1 20210110] on linux
can you help me?
kind regrards,
Jeron
P.S.: pleas excuse my bad english..