Plant Sensor is used for measuring soil moisture. It uses the soil moisture sensor module on NodeMCU ESP8266. The output is displayed using justgate on HTML5. Data exchange between the sensor and the HTML5 is performed over the Microgear Library. We need to install one Microgear on ESP8266 and another Microgear on HTML5.

Video tutorial


  • NodeMCU ESP8266

  • Soil Moisture Sensor Modules

Schematic Diagram

NodeMCU pin diagram


ESP8266 NodeMCU Development Kit

Download Microgear library for esp8266 arduino here

code :


Download Microgear library for html5 here

code :


Download Plant Sensor’s source code here

Don’t forget to change your ssid, password, APPID, APPKEY and APPSECRET otherwise you may not connect to NETPIE.