Skip to content

File SEN5X_API.h

FileList > firmware > SEN5X_API.h

Go to the source code of this file

Header for the Sensirion SEN5X sensor API. More...

  • #include <Arduino.h>

Public Attributes

Type Name
float sen5x_hum
Relative humidity.
float sen5x_mc_10p0
PM10 mass concentration.
float sen5x_mc_1p0
PM1.0 mass concentration.
float sen5x_mc_2p5
PM2.5 mass concentration.
float sen5x_mc_4p0
PM4.0 mass concentration.
float sen5x_nox
Nitrogen Oxides (NOx) index.
float sen5x_temp
Temperature.
float sen5x_voc
Volatile Organic Compounds (VOC) index.

Public Functions

Type Name
void sen5x_inicializar (void)
Initializes the SEN5X sensor.
bool sen5x_leer (void)
Reads the latest data measured by the sensor and updates the global variables sen5x_* with the new values.

Detailed Description

Declares functions and global variables for interacting with the sensor.

Author:

[ALD-DSL/ATARI_RESEARCH_LAB]

Date:

[2024-07-22/2025-10-15]

Version:

2.0

Copyright:

GNU General Public License version 3 or later

Note:

This module is an abstraction layer over the SensirionI2CSen5x library.

Public Attributes Documentation

variable sen5x_hum

Relative humidity.

float sen5x_hum;


variable sen5x_mc_10p0

PM10 mass concentration.

float sen5x_mc_10p0;


variable sen5x_mc_1p0

PM1.0 mass concentration.

float sen5x_mc_1p0;


variable sen5x_mc_2p5

PM2.5 mass concentration.

float sen5x_mc_2p5;


variable sen5x_mc_4p0

PM4.0 mass concentration.

float sen5x_mc_4p0;


variable sen5x_nox

Nitrogen Oxides (NOx) index.

float sen5x_nox;


variable sen5x_temp

Temperature.

float sen5x_temp;


variable sen5x_voc

Volatile Organic Compounds (VOC) index.

float sen5x_voc;


Public Functions Documentation

function sen5x_inicializar

Initializes the SEN5X sensor.

void sen5x_inicializar (
    void
) 

Searches for the sensor on the I2C bus, resets it, and starts measurements.


function sen5x_leer

Reads the latest data measured by the sensor and updates the global variables sen5x_* with the new values.

bool sen5x_leer (
    void
) 

Returns:

True if the reading was successful



The documentation for this class was generated from the following file firmware/SEN5X_API.h