Measuring data from a digital sensor

ESP8266 boards can be used to read and monitor data from both digital and analog sensors. To demonstrate this, we are going to measure data from a digital temperature and humidity sensor then display the data on the serial monitor.

Getting ready

In this tutorial, you will need an ESP8266 board, a USB cable, and a few other components, which include:

The DHT11 pin configuration is shown in the following diagram:

Getting ready

First mount the ESP8266 board and the DHT11 sensor onto the breadboard. Connect a 10 kΩ pull up ...

Get ESP8266 Internet of Things Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.