CO2 Sensor Senseair S8 - big values read
-
Hi,
I installed a Senseair S8 senzor on a Raspberry Pi 4. In the first week it worked ok (values coming close to 400 ppm when I open the window) then it started to show big values, especially when I open the window, values like 65429 ppm. The reading interval is 15 seconds. I use this code to get the value from the sensor. Any idea what could be the problem?
ser = serial.Serial("/dev/serial0",baudrate =9600,timeout = .5) ser.flushInput() time.sleep(1) ser.flushInput() ser.write(b"\xFE\x44\x00\x08\x02\x9F\x25") time.sleep(.5) resp = ser.read(7) high = resp[3] low = resp[4] co2 = (high*256) + lowThanks!
-
Hi,
I installed a Senseair S8 senzor on a Raspberry Pi 4. In the first week it worked ok (values coming close to 400 ppm when I open the window) then it started to show big values, especially when I open the window, values like 65429 ppm. The reading interval is 15 seconds. I use this code to get the value from the sensor. Any idea what could be the problem?
ser = serial.Serial("/dev/serial0",baudrate =9600,timeout = .5) ser.flushInput() time.sleep(1) ser.flushInput() ser.write(b"\xFE\x44\x00\x08\x02\x9F\x25") time.sleep(.5) resp = ser.read(7) high = resp[3] low = resp[4] co2 = (high*256) + lowThanks!
-
maybe check what they did here:
https://github.com/airgradienthq/arduino/blob/master/AirGradient.cpp
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login