ESP32S3 : Temperature Sensor (T° out of range)
Posted: Wed Jan 10, 2024 10:04 am
Good morning,
I get a problem using the temperature sensor of the Esp32S3.
I am trying to use the sensor in order to measure an ambiant T° of -18°C or something near this T°.
My T° sensor is configured in the range [50; 125], and I would like the temperature_sensor_get_celsius method to tell
ESP_FAIL (Because the measured T° is outside the T° range°).
I configure the T° sensor this way :
temperature_sensor_config_t temp_sensor_config;
temperature_sensor_handle_t TempSensor;
temp_sensor_config = TEMPERATURE_SENSOR_CONFIG_DEFAULT(50, 125);
temperature_sensor_install(&temp_sensor_config, &TempSensor);
temperature_sensor_enable(TempSensor);
esp_err_t err = temperature_sensor_get_celsius(TempSensor, &Temperature);
However, the err is not 0xFFFF. The method answers 0x0000 but the Temperature given by the method is not correct.
Do you know what can happen ?
Best regards,
Thomas TRUILHE
I get a problem using the temperature sensor of the Esp32S3.
I am trying to use the sensor in order to measure an ambiant T° of -18°C or something near this T°.
My T° sensor is configured in the range [50; 125], and I would like the temperature_sensor_get_celsius method to tell
ESP_FAIL (Because the measured T° is outside the T° range°).
I configure the T° sensor this way :
temperature_sensor_config_t temp_sensor_config;
temperature_sensor_handle_t TempSensor;
temp_sensor_config = TEMPERATURE_SENSOR_CONFIG_DEFAULT(50, 125);
temperature_sensor_install(&temp_sensor_config, &TempSensor);
temperature_sensor_enable(TempSensor);
esp_err_t err = temperature_sensor_get_celsius(TempSensor, &Temperature);
However, the err is not 0xFFFF. The method answers 0x0000 but the Temperature given by the method is not correct.
Do you know what can happen ?
Best regards,
Thomas TRUILHE