I was working on my project with multiple analog capacitive soil humidity sensors. Therefore, I wanted to use analog read and was wondering how does the program works. Does it use for reference 5v or does it look for highest input value and use it for the ratio instead. That would be a problem in my case because my sensors output voltage from 0 to 3.3v. Consequently, it will never reach 100% humid. I took a look to c++ code but I was unsure. If its possible I would like to receive a node which would include one more input for highest expected input from a sensor.
Thank you in advance
Analog read is based on the reference voltage of your board. You can find out your reference voltage on the
VREF board pins.
For example, for Arduino Uno, the reference voltage is 5V. It means that
1 at the voltage of 5V.
For ESP8266, the reference voltage is 3.3V and
1 at 3.3V.
If your sensor changes voltage only in the range from 0 to 3.3V, try setting the new boundary conditions with the
map node. From [0, 3.3] to [0, 5].