Arduino library for the ENS190 CO2 sensor.
The ENS190 is a high-performance, non-dispersive infrared (NDIR) CO₂ sensor designed for precise and reliable carbon dioxide measurement. It complies with key regulatory standards such as California Title 24, RESET, WELL, and ASHRAE. It is an ideal solution for air quality monitoring in smart buildings, HVAC systems, and other indoor environments.
It is assumed that
- The Arduino IDE has been installed. If not, refer to "Install the Arduino Desktop IDE" on the Arduino site.
- The library directory is at its default location. Normally this is
C:\Users\[your_username]\Documents\Arduino\libraries
.
You might need to add your board to the Arduino IDE. This library was tested with the Espressif ESP32. For the installation of the ESP32 in the Arduino IDE, see Arduino ESP32 Installation
- In the Arduino IDE, navigate to the Arduino Library Manager on the left side (or, alternatively, select Sketch > Include Library > Manage Libraries...)
- Search for
ScioSense_ENS190
- Select the library from the search results and press
Install
- Download the code from this repository via "Download ZIP".
- In Arduino IDE, select Sketch > Include Library > Add .ZIP library... and browse to the just downloaded ZIP file.
- When the IDE is ready this README.md should be located at
C:\Users\[your_username]\Documents\Arduino\libraries\ScioSense_ENS190\README.md
.
Please make sure that you use the correct supply voltage:
- The ENS190 runs at VDD = 5V.
- The serial communication runs at 5V, and supports UART, RS485, and Modbus.
This example shows how to wire a ESP32DevKitC with the ENS190 breakout board for UART communication.
ENS190 | ESP32 |
---|---|
VDD | 5V |
GND | GND |
RXD | TX2(17) |
TXD | RX2(16) |