The sensor outputs 3.3V when totally dry, and 0V when totally humid.
I have connected it to the ADC pin of the ESP-12, clearly using a voltage divider to bring the voltage between 0V and 1V. So I tried to use a 2R+1R scheme, with 20K and 10K, 330K and 660K, and 2K and 1K. However, what I see is that the difference between the totally dry and totally humid ranges for the different resistor schemes between 0.13V and 0.28V, which thus is not very accurate. I do not mind to get super accurate measurements, but something in the range 0.10V-0.90V would be better.
Testing the sensor without voltage divider with a multimeter reports a value between 1.48V-VCC(3.15V). I guess that the best I can do would be to get a value between 1.48/3.15 and 3.15/3.15, so 0.46 and 1V, but of course I can also accept less difference between the two measurements. In fact, what I really care about is not when the soil is humid, but have accurate measurements with the soil dry, therefore for high voltages.
Any idea why this is not working? I have checked the connections multiple times, and they are ok. I am wondering whether to use different resistor values, but cannot figure out what they could be.