Interface soil moisture sensor and water pump with NodeMCU


  • Interface soil moisture sensor and mini water pump with NodeMCU


  1. NodeMCU board (quantity: 1 no.)
  2. Micro USB cable A to B (quantity: 1 no.)
  3. Breadboard (quantity: 1 no.)
  4. 12V mini water pump (quantity: 1 no.)
  5. Soil moisture sensor (quantity: 1 no.)
  6. Jumper wire – male to male (quantity: 6 no.)
  7. Jumper wire – male to female (quantity: 4 no.)
  8. Arduino IDE on your computer

Let’s begin!


Interfacing soil moisture sensor and mini water pump module with NodeMCU


Final Code

To copy the code, right click on view raw at the bottom of the code, click on open link in new tab and then copy the code.

There you go!


Loader Loading...
EAD Logo Taking too long?
Reload Reload document
| Open Open in new tab

We would love to see what you build out of these learnings!

Click here to submit your projects, share it with the world and stand a chance to be rewarded.


Knowledge and Content by Li2 Technologies | © 2021 NASSCOM Foundation | All rights reserved