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:
- Analog Pins: A1, A2, and A3
Function Definition: setmoisturepin(pin = "A1")
Name | Type | Description | Expected Values | Default Value |
---|---|---|---|---|
pin | int | The pin of Quarky or the Expansion board where the relay is connected. | "A1", "A2", "A3" | "A1" |
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:
Copyright 2024 – Agilo Research Pvt. Ltd. All rights reserved – Terms & Condition | Privacy Policy