I am struggling on making a 7 in 1 soil sensor work.
I am using this sensor, with a TTL to RS-485 module. I've tried interacting with the sensor using the code bellow, but haven't seen any responses at all.
I've tried lots of different things (changing the wiring, code and even the arduino board), so I'm guessing it's a problem with the sensor itself. I wanted to ask just in case.
If anyone has any idea I should try, please say so (I'm desperate).
These sensors are a total scam - You are wasting your time trying to get them to deliver the 7 attributes.
Assuming your TTL to RS-485 module is connected correctly - you could try this improved code (your code was saturating the Tx buffer of Serial by printing all the time RS not available which would then become blocking).
A recent post on the forum included a screenshot of the manufacturer's instructions. The N, P, and K parts you have to enter from outside sources; they do not get their data from the soil.
Even if you got numbers out of it, what confidence could you ever have that they are even close to the truth?
Just one determination from the long list measurements it claims would need to be verified by lab grade methods in order to calibrate it. pH for example needs two buffer solutions to check the slope. Conductivity needs a standard solution of potassium chloride.
Better to get one good measurement than half a dozen dubious ones.