You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Seeed Xiao S3 WIO repeater will not display MCU Temperature under 0C #3840
I have three Xiao S3 WIO solar repeaters in deployment. Two are running v1.17.1 and one is v1.18.0.
I noticed this week that all of them are reporting MCU temperatures of -0.1C while the outdoor temperature is roughly -5C.
I log telemetry in Home Assistant and the reported MCU temperatures correlate with outdoor temperatures until under 0C where they all flatline.
I am unsure if this is limited to the ESP32S3 platform or other ESP boards as a whole.
// To get and average the temperature so it is more accurate, especially in low temperature
for (int i = 0; i < 4; i++) {
raw += temperatureRead();
}
return raw / 4;
}
I tried changing the uint32_t to a float and now it can show sub-0 temperatures, however the scale is way off.
Now the MCU reports -20C in -5C ambient temperatures.
I totally agree that the management between float and unsigned 32-bit variables isn't well handled in this function.
in fact, "temperatureRead()" defined in arduino core. with no configuration or tuning.
The temperatureRead() function abstracts the sensor's hardware interactions; this method is ideal for quick implementations where detailed control over the sensor is unnecessary (not in this case)
in this ESP32 document (link) the built-in sensor contains an 8-bit analogue-to-digital converter (ADC) and a digital-to-analogue converter (DAC) to compensate for the temperature measurement.
// Temperature from ESP32 MCU
float getMCUTemperature() override {
float raw = 0.0;
// To get and average the temperature so it is more accurate, especially in low temperatures
for (int i = 0; i < 4; i++) {
raw += temperatureRead();
}
return (float) (raw / (float) 4.0);
}
This proposal will not fix your problem, but it may reduce the gap between the real temperature (in your case, -5°C) and the measured temperature (-20°C)
You can check the SeeedStudio forum (link); others are complaining about the same behaviour in the ESP32 ArduinoCore/temperatureRead function.
Activity
DrCoolHands commentedon Nov 14, 2026
I think I found the source:
MeshCore/src/helpers/ESP32Board.h
Lines 58 to 67 in 75b04ef
I tried changing the uint32_t to a float and now it can show sub-0 temperatures, however the scale is way off.
Now the MCU reports -20C in -5C ambient temperatures.
BaouebMohsenAmine commentedon Nov 15, 2026
Hi @DrCoolHands,
I totally agree that the management between float and unsigned 32-bit variables isn't well handled in this function.
in fact, "temperatureRead()" defined in arduino core. with no configuration or tuning.
The temperatureRead() function abstracts the sensor's hardware interactions; this method is ideal for quick implementations where detailed control over the sensor is unnecessary (not in this case)
in this ESP32 document (link) the built-in sensor contains an 8-bit analogue-to-digital converter (ADC) and a digital-to-analogue converter (DAC) to compensate for the temperature measurement.
This proposal will not fix your problem, but it may reduce the gap between the real temperature (in your case, -5°C) and the measured temperature (-20°C)
You can check the SeeedStudio forum (link); others are complaining about the same behaviour in the ESP32 ArduinoCore/temperatureRead function.