# SHT3X humidity not displayed in Mainsail

**URL:** https://klipper.discourse.group/t/sht3x-humidity-not-displayed-in-mainsail/22557
**Category:** General Discussion
**Created:** [March 20, 2025, 6:29am UTC](https://klipper.discourse.group/t/sht3x-humidity-not-displayed-in-mainsail/22557 "2025-03-20T06:29:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![potokslow](https://avatars.discourse-cdn.com/v4/letter/p/4491bb/32.png) [@potokslow](https://klipper.discourse.group/u/potokslow)
#### Post date: [March 20, 2025, 6:29am UTC](https://klipper.discourse.group/t/sht3x-humidity-not-displayed-in-mainsail/22557/1 "2025-03-20T06:29:28Z")

</div>

### Basic Information:

Printer Model: Creality Ender 3 S1 Pro  
 MCU / Printerboard: Default / stm32f401xc  
 Host / SBC Main: CB1  
 Host / SBC Sensor: RP2040  
 [klippy.log](https://klipper.discourse.group/uploads/short-url/31OhXrkVm53bIk9jhDvxkEGJKIK.log) (25.6 KB)

Hello,

I have installed SHT3X sensor to monitor conditions in the chamber, however I’m unable to get it to display humidity information in the Mainsail dashboard.

SHT3X is connected to RP2040 via I2C, which is then connected to Klipper host via USB.

The sensor is defined and does display temperature correctly on the dashboard, but the humidity is not shown.  
I created a query macro following `https://github.com/Villiem/klipper_i2c` and I can manually query the temperature and humidity using the macro, it’s just that the humidity doesn’t show up on the dashboard.

Here’s the portion of the config related to the sensor:

```auto
[mcu Xiao_RP2040]
serial: /dev/serial/by-id/usb-Klipper_rp2040_4150324E3037350C-if00
restart_method: command

[temperature_sensor chamber]
sensor_type: SHT3X
#i2c_address:
# Default is 68 (0x44).
i2c_mcu: Xiao_RP2040
#i2c_bus:
i2c_software_scl_pin: gpio7
i2c_software_sda_pin: gpio6

[gcode_macro QUERY_CHAMBER]
gcode:
    {% set sensor = printer["sht3x chamber"] %}
    {action_respond_info(
        "Temperature: %.2f C\n"
        "Humidity: %.2f%%" % (
            sensor.temperature,
            sensor.humidity))}

```

Here’s the relevant portion of my dashboard:

 ![2025-03-20 14_26_45-Mozilla Firefox](https://global.discourse-cdn.com/free1/uploads/klipper/original/3X/2/e/2e0b270356399992a6a25581bbe4642af9ee1253.png)

How can I get get the humidity to display on the dashboard?  
What am I missing here?

Thank you for any suggestions

---

<div class="post-metadata">

### Author: ![nefelim4ag](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/nefelim4ag/32/2387_2.png) [@nefelim4ag](https://klipper.discourse.group/u/nefelim4ag)
#### Post date: [March 20, 2025, 9:47pm UTC](https://klipper.discourse.group/t/sht3x-humidity-not-displayed-in-mainsail/22557/2 "2025-03-20T21:47:30Z")

</div>

> <https://github.com/mainsail-crew/mainsail/blob/5be8cfd4fe2f5be1d4b3e9a5efd7b051be69a5ef/src/store/variables.ts#L23>

Most probably you want a recent enough mainsail.

---

<div class="post-metadata">

### Author: ![potokslow](https://avatars.discourse-cdn.com/v4/letter/p/4491bb/32.png) [@potokslow](https://klipper.discourse.group/u/potokslow)
#### Post date: [March 21, 2025, 2:12am UTC](https://klipper.discourse.group/t/sht3x-humidity-not-displayed-in-mainsail/22557/3 "2025-03-21T02:12:36Z")

</div>

> [@nefelim4ag](#):
>
> Most probably you want a recent enough mainsail.

Thank you bringing this up @nefelim4ag

I saw the [#2025](https://github.com/mainsail-crew/mainsail/pull/2025) and mistakenly assumed it was already part to the main release since it was marked as Merged, without checking the release notes 🤦‍♂️

I’m running the most recent version from main branch, being v2.13.2, which doesn’t seem to include this feature yet.  
I don’t want to mess around trying to switch to develop branch, don’t even know where to start, so I guess I’ll have to wait for the new release.

Thank you for helping me clear up the misunderstanding.

---

<div class="post-metadata">

### Author: ![system](https://global.discourse-cdn.com/free1/uploads/klipper/original/1X/64419bf2aac6639e6ef5cef200dcd456b0a01ac3.png) [@system](https://klipper.discourse.group/u/system)
#### Post date: [April 20, 2025, 12:12pm UTC](https://klipper.discourse.group/t/sht3x-humidity-not-displayed-in-mainsail/22557/4 "2025-04-20T12:12:57Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
