setmoisturepin()

Function Definition: setmoisturepin(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 connects the soil moisture sensor to the specified pin. Once initialized, other moisture sensor-related functions can be used.

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