Heating Controller with Scheduler. (Temperature sensor ds18b20)

//********************* DHT DETAILS ******************************************
#include “DHTesp.h”
#ifdef ESP32
#pragma message(THIS EXAMPLE IS FOR ESP8266 ONLY!)
#error Select ESP8266 board.
#endif

DHTesp dht;

//add the following line in setup
dht.setup(7, DHTesp::DHT22); // Connect DHT sensor to GPIO 7

//and the following in temp functions
delay(dht.getMinimumSamplingPeriod());
float humidity = dht.getHumidity();
float temperature = dht.getTemperature();

// modify the rest of the code to match the changes

//*******************************************************************************