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

Measuring temperature, humidity, and light and displaying data on an LCD

In this section, I will teach you how to monitor temperature, humidity, and light detection on an LCD screen.

Hardware and software requirements

In this project, you will use an Arduino UNO board; but you can also use an Arduino MEGA, which also works perfectly.

For temperature reading,  we require a DHT11 sensor, a resistor of 4.7k, a photoresistor (light sensor), and a 10k resistor.

It also requires a 16 x 2 LCD screen, where you performed the tests; I used an I2C communication module for the screen interfaced with Arduino card. I recommend using this communication since only two pins of Arduino are required for sending data:

Finally, it requires a breadboard and male-male and ...

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