The 2 temperature calls is the 1st thing void loop() is requested to do.
Not that it matters. I checked the values with serial monitor and they matched
the unchanging values on the webpage display. Hit the reset button and after it reinitializes a new set of values will display. But no updates. I have two other ESP-32 WROOM units online and updating the same type sensors, with the same code setup.
#include <OneWireNg.h>
#include <DallasTemperature.h>
#define SENSOR_PIN 14 // ESP32 pin GPIO14
int tmp_adj_1 = 0; // sensor 1 calibration adjustment
int tmp_adj_2 = 0;
float sup_manifold_tmp; // Dallas DS18B20 temp sensor
float sup_tmp;
float sup_manifold_temp;
float ret_manifold_tmp; // Dallas DS18B20 temp sensor
float ret_tmp;
void setup() {
delay(3000); // allow voltage stabilization on startup
pinMode(ONBOARD_LED, OUTPUT); // Blink LED function
pinMode(Blr_Disable_Rly, OUTPUT); // Boiler lockout relay
pinMode(Blr_Enable_Rly, OUTPUT); // Boiler enable relay
pinMode(Zone_Pump_1, INPUT); // Zone Pump "Call For Heat" Input
pinMode(Zone_Pump_2, INPUT);
pinMode(Zone_Pump_3, INPUT);
pinMode(Season_Override, INPUT); // switch override of heating system at end of winter
pinMode(System_Reset, INPUT);
pinMode(Boiler_Lockout_LED, OUTPUT);
digitalWrite(Blr_Disable_Rly, LOW); // Initialize boiler lockout relay OFF
digitalWrite(Blr_Enable_Rly, LOW); // Initialize boiler enable relay OFF
digitalWrite(Boiler_Lockout_LED, LOW);
Serial.begin(115200);
while (WiFi.status() != WL_CONNECTED) {
Initial_Connect_Attempts++;
Serial.println("Attempting to Connect To Local Network: ");
Serial.println(wifissid);
WiFi.begin(wifissid, wifipass);
delay(4000);
if (Initial_Connect_Attempts == 5) {
connectToWiFi();
}
Serial.print(".");
}
Serial.println("");
Serial.print("Connected to WiFi network with IP Address: ");
Serial.println(WiFi.localIP());
Serial.println("Attempting to connect to local WPA network...");
server.begin();
// you're connected now, so print out the status:
Serial.print("WiFi Status: ");
Serial.println(WiFi.status());
Serial.println();
Serial.print("ESP Board MAC Address: ");
Serial.println(WiFi.macAddress());
DS18B20.begin(); // initialize the DS18B20 space sensor
// DS18B20.setResolution(to be defined, 8); finish settingh up temps thru direct address call
DS18B20.requestTemperatures();
DS18B20.setWaitForConversion(false); // this speeds up processor throughput/execution time
}
void loop() {
sup_manifold_tmp = DS18B20.getTempFByIndex(0);
sup_tmp = sup_manifold_tmp + tmp_adj_1; // sensor calibration
ret_manifold_tmp = DS18B20.getTempFByIndex(1);
ret_tmp = ret_manifold_tmp + tmp_adj_2;