Required additional components

To demonstrate how the ESP8266 works, we will use some additional components. These components will help us learn how to read sensor inputs and control actuators using GPIO pins. Through this you can post sensor data to the Internet and control actuators from Internet resources, such as websites.

Required components

The components we will use include:

  • Sensors:
    • DHT11
    • Photocell
    • Soil humidity
  • Actuators:
    • Relay
    • Power switch tail kit
    • Water pump
  • Breadboard
  • Jumper wires
  • Micro USB cable


Let's discuss the three sensors that we will be using.


The DHT11 is a digital temperature and humidity sensor. It uses a thermistor and capacitive humidity sensor to monitor the humidity and temperature of the surrounding air, and produces a ...

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.