setldrthreshold()

Function Definition: setldrthreshold(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 LDR (Light) 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