In this chapter, we will build a home thermostat with ESP8266. The thermostat will have the following functions:
- It will read the temperature from a DHT22 temperature sensor
- It will compare the temperature with the desired one; if it is above it, it will trigger a relay OFF and if it is below, it will trigger the relay ON
But first, let's discuss how we can save data in the ESP8266 and retrieve it. Let's make use of SPIFFS.