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.

YG1006 Class

Module: yg1006

UPM module for the YG1006 flame sensor. It detects a flame or any other light source in the 760-1,100 nm wavelength range.
yg1006.jpg

Item Index

Methods

YG1006

(
  • pin
)
Number

YG1006 constructor

Parameters:

  • pin Number

    Digital pin to use

Returns:

Number:

flameDetected

() Boolean

Determines whether a flame has been detected

Returns:

Boolean:

true if a flame or another comparable light source has been detected