Hello Piotr!
I am trying to use the 2N7000 Mosfet (I have the BS170 too) but i do not get the desire result, I think i am following wrong your schema, right now i get almost the same readings for the sensor with the mosfet on and off, with the mosfet on :
ADC = 174, Moisture value = 0
ADC = 194, Moisture value = 3
ADC = 190, Moisture value = 3
ADC = 967, Moisture value = 130
ADC = 188, Moisture value = 2
the low ADC is around 160-200 and the high 950-980 in water and air
with the mosfet off
ADC = 361, Moisture value = 31
ADC = 450, Moisture value = 45
ADC = 334, Moisture value = 26
ADC = 437, Moisture value = 43
ADC = 325, Moisture value = 25
ADC = 402, Moisture value = 38
ADC = 497, Moisture value = 53
ADC = 1003, Moisture value = 136
ADC = 1001, Moisture value = 136
ADC = 1002, Moisture value = 136
ADC = 1002, Moisture value = 136
the low ADC is around 330-500 (in air) and the high 1000 (in water)
i put a 1M resistor and a 100 one ( At the moment i do not have 470 Ohms resistor) i read the specs and watch a lot of tutorials and people get results with the 100 resistor, I´ve changed the Mosfet to a new one, to discard that the mosfet factory errors,
I know this is for my electronic knowlegde, I attach 2 pics of my circuit. The blue wires are the ground ones the red the VCC the white is for reading the sensor and the orange is to control the mosfet, the resistor closest to the orange wire is the 100 ohms and the other to the ground is the 1M one.
https://drive.google.com/file/d/1LUEg-T-2KOLSCw-pb6mt9N30Q3qJv0wz/view?usp=sharinghttps://drive.google.com/file/d/18nFvt-TI2rGdJ6FRyyPaC7d6DzF_s_Km/view?usp=sharingI am pretty lost, I have tried all, and I know that is a noob error probably, wanna figure it out myself but I could not do it.
Thanks for your Help Piotr, i am learning a lot thx to you, I understand you can not loose time because you have your own things to do, but I can not thank you for all the times you´ve helped me.
Kind regards,
Martín