O'Reilly logo

Internet of Things Programming with JavaScript by Ruben Oliva Ramos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Monitoring temperature, humidity, and light using Node.js with Arduino Ethernet

In the preceding section, we showed how to monitor our Arduino via Wi-Fi using the CC3000 module; now we will use another important module: Ethernet Shield. The hardware connection of the part is similar to the following image:

Monitoring temperature, humidity, and light using Node.js with Arduino Ethernet

Code for the application of the Arduino Ethernet shield

You can now either copy the code inside a file called Monitor_Ethernet.ino, or just get the complete code from the folder for this project; you need to use the Arduino  IDE.

The following are the libraries included in the program:

#include <SPI.h> #include <Ethernet.h> #include <aREST.h> #include ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required