Skip to content

Nitric Oxide Sensor

The NitricOxide sensor class provides access to a nitric oxide sensor.

Creates a new NitricOxide object instance.

NitricOxide(options)

options

An object of properties used to construct the class.

sensor - The hardware connection definition.

interval (optional) - The sampling interval in milliseconds.

Returns a sample object containing the current NO concentration data.

sample()

An object with the following property:

NO - A number that represents the sampled nitric oxide in parts per million (ppm).

const sensor = new device.sensor.NitricOxide({
sensor: {
io: device.io.I2C,
address: 0x33
}
});
const sample = sensor.sample();
console.log(`NO Level: ${sample.NO} ppm`);

Nitric Oxide