setgasthreshold()

Function Definition: setgasthreshold(threshold_value = 1500)

Parameters

NameTypeDescriptionExpected ValuesDefault Value
threshold_valueintThe theshold value for the LDR sensor.0-40961500

Description

The function sets the threshold for the gas sensor connected to the selected pin. Threshold helps users decide whether the sensor is active or not. If the sensor value is greater than the threshold value, the sensor is active, or else it is inactive.

Example

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