1) Get your ESP8266 and Seeedstudio Moisture Sensor ready. You can use it from any of the Seeedstudio Grove Kits.
2) Download and install mOS tool for Mongoose OS. Follow installation instructions on https://mongoose-os.com/software.html
3) Follow step-by-step instructions from this video:
4) init.js code:
load('api_grove.js');
Grove.Button.attach(5, function() {
print('Moisture: ', Grove.MoistureSensor.get(0));
});
5) Enjoy!
If you like this and find useful, please hit the 'Respect project' button and don't forget to 'Share'. That way we will hear your feedback and bring even more exciting projects to you door.
Want to play with other Seedstudio sensors from Grove Kits? Check other tutorials we have for Button, Light Sensor, Motion Sensor, UV Sensor, Relay, Buzzer.
Check also other projects by Mongoose OS team.
Let us know if any questions or feedback -> forum.cesanta.com
Comments