I have a soil sensor I am trying to use with my Rak 4631 so I connected the 5801 module to be able to use it with my device. The issue I am having is that it isn’t receiving the data back from the sensor. I have used it with an arduino and it works just fine. I did a continuity check and all the cables are good plus it turns off if any are unplugged. I have it running to 5v/gnd and a1 port. As you can see below I have my wiring and my code but it’s not responding when i dip it in the water and pull it out. What am I doing wrong?
Here is the Soil Sensor I am using. I have done this sucessfully with an adafruit wind sensor, I use the 5801 module to run power to the 12v sensor but I used the Rx1 io pin. I tried that first but I couldn’t get it to work, so then I tried the a0 port and even tried the Rak 5801 4_20 ma example but wasn’t getting any voltage so not sure what is going on considering it’s powering up
//Void Loop Variables
int iterations = 1; //loop iterations timer!!!
//Amazon 32 soil sensor
const int dry = 595; // value for dry sensor
const int wet = 239; // value for wet sensor
void loop()
{
int sensorVal = analogRead(A1);
int percentageHumididy = map(sensorVal, wet, dry, 100, 0);
Serial.print(percentageHumididy);
Serial.println("%");
delay(100);