News — Arduino

K-30 CO2 Sensor Troubleshooting with Arduino or Raspberry Pi

Customers using SenseAir's K-30 CO2 sensor with an Arduino micro controller or the Raspberry Pi occasionally see the sensor "lock up" during use. It appears that the sensor sends negative data and quits working. After unplugging the sensor from power momentarily, it works again. This seems to be a random problem. Fortunately, we have been able to recreate the problem, and have several solutions. Low Power The most common issue is power. 5VDC is the absolutely required minimum voltage. If you are powering from a USB port, the nominal 5.25V will drop with other USB devices on the circuit, causing an error. If...

Read more →


CO2 Oxygen Sensors on Drone

Reading CO2 and oxygen levels in remote areas can be challenging. That's why we were excited to see CO2Meter’s S8 CO2 sensor and UV Flux oxygen sensor installed on a drone for high-altitude atmospheric testing. The project is the brainchild of RYF Technologies.  Last year, they began testing CO2 sensors to create a handheld CO2 monitor for the Chilean market. A requirement for the new monitor was that it used a built-in barometric sensor to automatically adjust the CO2 level for extreme changes in altitude in the Andes Mountains. The monitor uses a built-in micro pump to quickly change the...

Read more →


Arduino CO2 Sensor Application Notes Update

Our engineering team has rewritten the application notes to connect the Arduino Uno, Mega or Mega2560 microcontrollers with two of our most popular CO2 sensors. AN-126 – Arduino UART Interface to K-30 Sensor. This app note and included source code (zip) gives you step by step instructions for connecting SenseAir’s K-30 CO2 sensor using an industry‐standard UART TXD‐RXD connection. Wiring diagrams are included. AN-128 – Arduino UART interface to COZIR Sensor. This app note and included source code (zip) gives you step by step instructions for connecting the GSS COZIR sensor using an industry‐standard UART TXD‐RXD connection. Wiring diagrams are...

Read more →


Arduino Code for K-30 CO2 Sensor Works for S8 Sensor Too

Many clients use our Arduino UART examples and Arduino source code to connect the popular SenseAir K-30 sensor to Arduino boards. However, these examples were all created before the SenseAir S8 CO2 Sensor was developed. So we were surprised when a client recently wrote us: "To my surprise, the script you give for the K30 sensor works out of the box with the S8! Why don't you mention it in the app note? Had I known that from the start, I wouldn't have bothered you about which sensor to buy..." Frankly, we were a bit sheepish. In all the projects...

Read more →


USC Human Powered Vehicle Design Team

The University of Southern California Human Powered Vehicle Design Team used our K-30 sensor in an attempt to develop an automated cabin fresh air delivery system for their vehicle. This project was part of their overall strategy to design an entry for the 2014-2015 Human Powered Vehicle Design Challenge sponsored by the American Society of Mechanical Engineers. CO2Meter.com was a sponsor for the USC team. The goal of the project was to improve rider performance by keeping the CO2 ppm in the cabin below a determined threshold and regulating cabin temperature while maintaining vehicle aerodynamics. The team knew at CO2...

Read more →