228Views2Replies

Author Options:

Nodemcu esp8266 possible to connect multiple soil moisture sensors ? Answered

I'm planning to make automation of my garden to check moisture, temperature, etc.. I got a query is there any possibility to connect multiple soil moistures to one nodemcu. If possible then please help me understand how to design it.

Comments

The forums are retiring in 2021 and are now closed for new topics and comments.
0
kturpin
kturpin

1 year ago

I'm not an expert but I'll try to help - it looks like a typical soil moisture sensor has 3 leads - +, - and a signal line.

To conserve pins I would break out the + and - onto a bus of some kind to power them all in common and then you should be able to have as many sensors as you have GPIO pins open. You'll have to refer to the pinout diagram for your board to know which those are since there are different versions of the NodeMCU.

1
Gadgets_and_Gear
Gadgets_and_Gear

Reply 11 months ago

The nodemcu only has 1 analog pin. As far as I know, those sensors work with analog outputs. You would need some kind of multiplexing.

0
kturpin
kturpin

Reply 11 months ago

My bad, I didn't have that info in front of me at the time. Thanks for filling in the details!