Hi,
I have a Senseair S8 installed on a Raspberry Pi 4. lately I get very big values from the sensor (like 65528 ppm, especially when I open the window; the expected values should be around 400 ppm). I use the below code to read the co2 value, 15s interval. What could be the problem? Thanks
I have a Senseair S8 installed on a Raspberry Pi 4. lately I get very big values from the sensor (like 65528 ppm, especially when I open the window; the expected values should be around 400 ppm). I use the below code to read the co2 value, 15s interval. What could be the problem? Thanks
Code:
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