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:
- DHT11 temperature/humidity sensor (https://www.sparkfun.com/products/10167)
- 10 kΩ resistor
- Breadboard
- Jumper wires
The DHT11 pin configuration is shown in the following diagram:
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.