Skip to content

Seeed Xiao S3 WIO repeater will not display MCU Temperature under 0C #3840

Open

Description

@DrCoolHands

Hello,

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.

Activity

  1. DrCoolHands commented on Nov 14, 2026

    @DrCoolHands
    Author

    I think I found the source:

    float getMCUTemperature() override {
    uint32_t raw = 0;
    // 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.

  2. BaouebMohsenAmine commented on Nov 15, 2026

    @BaouebMohsenAmine

    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.

      // 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions