Your Contact to Sensirion

Umschlag

Contact

Contact our sensor experts:

Contact Form

Distributoren

Distributors

Here you find the nearest distributor in your area:

Our Distributors

Standorte

Locations

Find out where we are located:

Our Locations

toggle menu
  • Home
  • News
  • Platforms
    • Environmental Sensor Shield
    • Smart Gadget Development Kit
    • Wearable Development Kit
    • Raspberry Pi
    • Qualcomm Snapdragon
    • Arduino
    • Cypress PSoC Series
    • Generic Linux Support
    • Thingstream MQTT IoT Sensor Starter Kit
  • Tutorials
    • Wearable Development Kit: Build Your Own Device
    • Wearable Development Kit: Logging Data
    • Raspberry Pi: SFM Software Package
    • Raspberry Pi: Alexa with Indoor Air Quality
    • Raspberry Pi: Using Flow Sensors
    • Raspberry Pi: Weather Station
    • Arduino: Create Your Own CO2 Monitor
    • Arduino: Stand-Alone Liquid Flow Meter
    • Arduino: Interface for Liquid Flow Sensors
    • Arduino: Weather Station
    • Arduino: Closed Loop Volume Controller Using Liquid Flow Sensors
    • Arduino: Interface for Multiple SF06 Liquid Flow Sensors
    • Arduino: Interface for SF06 Liquid Flow Sensors with Level Shifter
    • Arduino: CAN Bus Flow Meter
  • Partner Spotlight
  • Applications
    • Medical Ventilation
    • CO2 Monitor Reference Design
    • SHTC3 BLE Beacon Development Kit
    • Directional Wind Meter Using SDP3x
    • Smart Speaker
    • Archive
      • On/Off Body Detection
      • Perspiration
      • Antifogging in VR Goggles
  • Labs
    • #20 - Integrate Flex-PCB Sensors into Prototyping Setups
    • #19 - Smart Factory Particle Monitor Network
    • #18 - Inhalation Application Benefits
    • #17 - Sleep Analysis and Pulse Monitor
    • #16 - Thermal Comfort Sensor
    • #15 - Anti-Fogging for Bathroom Mirrors
    • #14 - Improved Puff Sensing of Inhalation Devices
    • #13 - Spirometer
    • #12 - Breath Detection
    • #11 - Stress, Mood and Emotion Sensing
    • #10 - CO2 Sensing in Car
    • #9 - Milk Fat Concentration Sensor
    • #8 - Presence Detection with IR Sensor
    • #7 - RH Sensor Trigger for BLE Beacon
    • #6 - Smart Inhaler
    • #5 - Windshield Ice Detector
    • >> See All Labs Ideas
  • Global Website

Contact

search
cart
DOWNLOAD CENTER BUY NOW INVESTORS
Sensirion AG Switzerland
  • Home
  • News
  • Platforms
    • Environmental Sensor Shield
    • Smart Gadget Development Kit
    • Wearable Development Kit
    • Raspberry Pi
    • Qualcomm Snapdragon
    • Arduino
    • Cypress PSoC Series
    • Generic Linux Support
    • Thingstream MQTT IoT Sensor Starter Kit
    • Platforms/Tutorials

      Choose Your Platform

      Here you can find an overview of various platforms which support Sensirion sensors. Furthermore, we have added some tutorials like how to build your own weather station with Arduino or how to use flow sensors on Raspberry Pi and many more. Learn more about which platform supports our sensors.

      Platform overview

  • Tutorials
    • Wearable Development Kit: Build Your Own Device
    • Wearable Development Kit: Logging Data
    • Raspberry Pi: SFM Software Package
    • Raspberry Pi: Alexa with Indoor Air Quality
    • Raspberry Pi: Using Flow Sensors
    • Raspberry Pi: Weather Station
    • Arduino: Create Your Own CO2 Monitor
    • Arduino: Stand-Alone Liquid Flow Meter
    • Arduino: Interface for Liquid Flow Sensors
    • Arduino: Weather Station
    • Arduino: Closed Loop Volume Controller Using Liquid Flow Sensors
    • Arduino: Interface for Multiple SF06 Liquid Flow Sensors
    • Arduino: Interface for SF06 Liquid Flow Sensors with Level Shifter
    • Arduino: CAN Bus Flow Meter
  • Partner Spotlight
  • Applications
    • Medical Ventilation
    • CO2 Monitor Reference Design
    • SHTC3 BLE Beacon Development Kit
    • Directional Wind Meter Using SDP3x
    • Smart Speaker
    • Archive
      • On/Off Body Detection
      • Perspiration
      • Antifogging in VR Goggles
    • Applications

      Get Inspired by Our Applications

      On this page we want to inspire you with an assembly of various patented in-house application concepts, which our engineers came up with. Here you can find tutorials as well as documentations showing the versatile usage of Sensirion’s sensors.

      Explore now

  • Labs
    • #20 - Integrate Flex-PCB Sensors into Prototyping Setups
    • #19 - Smart Factory Particle Monitor Network
    • #18 - Inhalation Application Benefits
    • #17 - Sleep Analysis and Pulse Monitor
    • #16 - Thermal Comfort Sensor
    • #15 - Anti-Fogging for Bathroom Mirrors
    • #14 - Improved Puff Sensing of Inhalation Devices
    • #13 - Spirometer
    • #12 - Breath Detection
    • #11 - Stress, Mood and Emotion Sensing
    • #10 - CO2 Sensing in Car
    • #9 - Milk Fat Concentration Sensor
    • #8 - Presence Detection with IR Sensor
    • #7 - RH Sensor Trigger for BLE Beacon
    • #6 - Smart Inhaler
    • #5 - Windshield Ice Detector
    • >> See All Labs Ideas
    • Sensirion Labs

      Welcome to Sensirion Labs

      Sensirion stands for innovation. To inspire engineers and developers who are working with our sensor solutions, we have founded a new section called «Sensirion Labs». There you can find documentation to various ideas, which our employees came up with - for example how to use a differential pressure sensor to measure adblue / urea concentrations in liquids or how to build a pulse monitor. 

      See all labs ideas

Sensirion AG Switzerland
  • Sensirion Developers
  • Tutorials
  • Arduino: Create Your Own CO2 Monitor

Tutorial: Bluetooth CO2 Monitor with SCD30

Summary

This tutorial enables you to setup a CO2 monitor sending CO2 measurements via Bluetooth to nearby mobile phones. All steps necessary and a compatible app for Android and iOS are provided here.

The tutorial is structured in three parts:

  • Hardware Setup: Learn how to wire the sensor to the development board
  • Software Setup: Learn how to setup your computer to program the development board
  • Monitor Setup: Learn how to monitor your CO2 levels on your computer and via the "Sensirion MyAmbience CO2 app"


If you have a LILYGO® TTGO T-Display ESP32 then make sure to follow the instructions on the very bottom of this tutorial to enable the UI of your gadget.


Hardware Setup

To complete this tutorial, you'll need:

  • ESP32 DevKitC (available through our distribution network)
  • Sensirions SCD30 Sensor (available through our distribution network; it's also possible to use the Grove Plug if you don't want to solder anything)
  • Cables for soldering the connection or a Grove-to-Jumper cable (available through our distribution network)
  • USB cable to connect the ESP32 DevKitC module to your computer

Connect the SCD30 sensor as depicted below:

  • Connect the 3.3V to the 3.3V pin of the ESP32
  • Connect GND to GND on the ESP32
  • Connect the SDA pin to GPIO 26
  • Connect the SCL pin to GPIO 27

Software Setup

Setup the Arduino IDE for the ESP32 platform

The following instructions originate from here.

1. Install the current version of the Arduino IDE.

2. Start the Arduino IDE and open the Preferences window.

3. Enter the following link above into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas.

  • https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

4. Open the Boards Manager from Tools > Board -> Board Manager and install the esp32 platform

5. Select your ESP32 board from the Tools > Board menu after the successfull installation.

  • E.g. ESP32 Dev Modul

Setup the required libraries

We'll be installing 2 libraries. Click the links below and download the newest .zip release packages

  • The Sensirion Gadget BLE Arduino Library
  • The SCD30 sensor driver by SeeedStudio

For each of the downloaded .zip files: In the Arduino IDE, select Sketch -> include Library -> Add .zip Library and select the .zip file.

Launch the CO2 Monitor

1. Open the Arduino IDE.

2. Go to: File -> Examples -> Sensirion Gadget BLE Lib -> Example2_SCD30_BLE_Gadget.

3. Make sure the ESP32 is connected to your computer.

4. Press the Upload button on the top left corner of the Arduino IDE.


Monitor Setup

Value plotting on your computer

To verify that everything is working fine, open the Serial Plotter, while your ESP32 ist still connected to your computer to see the sensor values measured by the SCD30 sensor:

1. Go to: Tools -> Serial Plotter

2. Make sure on the bottom left corner "115200 baud" is selected, as depicted in the image below

Monitor your CO2 levels via Mobile App

Download the Sensirion MyAmbience CO2 app to monitor your CO2 levels, download history values and export and share the data with your friends.

  • Download for Android
  • Download for iOS


Note that on Android devices the Location services need to be enabled and the corresponding permissions granted to the application. This is required to allow the app to scan for nearby Bluetooth devices. This is a requirement of the Android OS for Bluetooth scanning. The app itself does not use your location.


Additional Steps for LILYGO® TTGO T-Display ESP32

The LILYGO® TTGO T-Display ESP32 is an ESP32 DevKit with a small 1.14 inch display attached. This allows us to visualize the current CO2 concentration and level color in green, yellow or red, depending if the CO2 level is good, bad or very bad.

Follow all the instructions above and additionally do the following:

1. Go to TTGO T-Display's Github Repository

  • Download the code as zip and extract its content

2. Copy the Folder "TFT_eSPI" to your Arduino library path

  • On Windows, this is by default: C:\Users\Your User Name\Documents\Arduino\libraries

3. In the same library path, open the Sensirion Gadget Ble Arduino Library folder, then Examples, then Example 3 and copy the content as follows into the "TFT_eSPI" Folder

  • Copy all files in the folder "fonts" to "TFT_eSPI/Fonts/Custom/"
  • Copy the file" User_Custom_Fonts.h" to "TFT_eSPI/User_Setups/"

4. In the Arduino IDE, open Example 3 by clicking on File -> Examples -> Sensirion Gadget BLE Lib -> Example3_SCD30_BLE_TTGO_Gadget

5. Press the Upload button

Follow Us

GitHub

Platforms/Tutorials

  • SHT31 Smart Gadget DevKit
  • Wearable DevKit
  • Raspberry Pi
  • Arduino
  • See all supported platforms

Applications

  • SHTC3 BLE Beacon Development Kit
  • On/Off Body Detection
  • Perspiration
  • Antifogging in VR Goggles
  • Directional Wind Meter Using SDP3x

Latest Labs Ideas

  • #19 - Smart Factory Particle Monitor Network
  • #18 - Inhalation Application Benefits
  • #17 - Sleep Analysis and Pulse Monitor
  • Overview of all labs ideas

Further Information

  • Developer News
  • Download Center
  • FAQs
  • Contact
  • Locations

Your Contact to Sensirion

Umschlag

Contact

Contact our sensor experts:

Contact Form

Distributoren

Distributors

Here you find the nearest distributor in your area:

Our Distributors

Standorte

Locations

Find out where we are located:

Our Locations

Please Find Here Various Support Topics

Buy Our Products at Your Local Distributor

About Sensirion

Environmental Sensors

Flow Sensors

Media/Newsroom

Investors

Useful Links

Sensirion Automotive Solutions

Career

Support Center

Partner Access

General

Terms and Conditions

Terms and Conditions for US Customers

Supplier Social Responsibility

Quality, Environment and Ethics

Sensirion AG

Laubisruetistrasse 50

8712 Staefa ZH, Switzerland

Tel. +41 44 306 40 00

infosensirioncom

2021 © Sensirion AG Switzerland
  • Home
  • Sitemap
  • Privacy Policy and Cookies
  • Imprint
  • Login
  • Disclaimer