It's very simple to get soil moisture dependent frequency by using some isolated wires, two resistors and a NE555 Timer IC (see Attachement-Picture). The great problem is, to measure this frequency with a NodeMCU or a simple ESP8266!
Yes, it's possible to take a low pass filter, a voltage devider and so on for using the ADC Pin. But in reality without spetial calibrating the usable Range of the 10bit resolution was very very small, in my case:
ideal
Air: 32 kHz (19 pF) 1,34 V ADC 404
Water: 8 kHz (60 pF) 1,17 V ADC 347
real
dry soil 10,7 kHz (45,1 pF) 1,21 V ...
wet soil 9,4 kHz (51,2 pF) 1,19 V ...
... that's not fine and it's not my target to use the ADC

I would like to (direct) measure the frequncy with EasyESP (see Attachement Circuit Diagram). It does not have to be 100% accurate!
If I use the "Pulse Counter" Device, it's counting ..., but it's counting without end! Is there a possibility to count the pulses within a special time? ... with "Rules"...? Or is there a other possibility?