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) + low
Thanks!
-
Welcome to the forum @wasssu
Best way to find out is probably to log the contents of the resp variable.
-
maybe check what they did here:
https://github.com/airgradienthq/arduino/blob/master/AirGradient.cpp
1 out of 3
Suggested Topics
-
Over the air updates
General Discussion • 23 Mar 2014, 21:38 • ToSa 1 Mar 2015, 11:21 -
Arduino Nano Every problem
Hardware • 1 Feb 2020, 09:18 • hakha4 5 Dec 2023, 02:21 -
Best time of year to buy higher quality small project solar panels?
Hardware • 10 Jun 2021, 19:19 • NeverDie 30 Aug 2024, 14:01 -
hlk-pm01 are to noisy for rfm69?
Hardware • 5 Aug 2023, 21:16 • Tmaster 9 Aug 2023, 16:28 -
Sleep mode for bmp280
Hardware • 20 Feb 2018, 13:24 • fishermans 5 Feb 2024, 18:30 -
"Remote Irrigation with LoRaWAN: LM27313 Challenges and PCB Design"
Hardware • 24 Jan 2024, 23:06 • wrendral 3 Feb 2024, 07:13