gassensorstatus()

Function Definition: gassensorstatus(pin = "A1")

Parameters

NameTypeDescriptionExpected ValuesDefault Value
pinintThe pin of Quarky or the Expansion board where the relay is connected."A1", "A2", "A3""A1"

Description

The function reports the state of the Gas sensor connected to the selected pin. The block returns 1 when the analog reading of the sensor is greater than the threshold value set by the user. Else it reports 0.

There are lots of pins to which the sensor can be connected:

  1. Analog Pins: A1, A2, and A3

Example

There are no examples documented for this article.
Table of Contents