UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

PPD42NS Class

Module: ppd42ns

UPM module for the PPD42NS dust sensor
ppd42ns.jpg

Item Index

Methods

Methods

PPD42NS

(
  • pin
)
Number

PPD42NS constructor

Parameters:

  • pin Number

    Digital pin to use

Returns:

Number:

getData

() Ppd42ns_dust_data

Prints dust concentration

Returns:

Ppd42ns_dust_data:

struct ppd42ns_dust_data Contains data from the dust sensor