However, I would like to ask how should I measure the voltage if I am using a 12v battery as the power source for the logger?
My idea is to use a filter paper to emulate the wetness of a leaf, i plan to connect the analog 1 input to the filter paper and another to the terminal. When the paper is wet, it allow certain current to flow through and when it’s dry, no current is flow through.
My question is can I connect the analog 1 in ->filter paper-> -ve/+ve terminal of the battery to get the reading?
Actually, the analog voltage will provide you with readings in voltage, regardless of the data you receive from the logger.
As you mentioned, current will flow when the paper is dry, and no current will flow when it is wet.
Analog inputs support voltage signals, not current.
My point in the last case is that any accessory connected to the analog input will provide data in the form of voltage,
You need to check the voltage when the paper is dry and when the paper is wet. Then, encrypt those voltage values on the server to obtain the wet/dry paper value on the analog input.
Thanks @Maryam , what we do is to detect the voltage of the battery that powered the tracker. We connect the analog 1 to the wet filter paper, and the filter paper to the +ve terminal of the battery that supply the power to the tracker. With this we can measure the voltage that pass through the filter paper when the paper is wet.