Skip to content

Add SHT21 sensor support and related configurations#9520

Closed
Tomas-Kuchta-FPV wants to merge 0 commit intomeshtastic:developfrom
Tomas-Kuchta-FPV:develop
Closed

Add SHT21 sensor support and related configurations#9520
Tomas-Kuchta-FPV wants to merge 0 commit intomeshtastic:developfrom
Tomas-Kuchta-FPV:develop

Conversation

@Tomas-Kuchta-FPV
Copy link

@Tomas-Kuchta-FPV Tomas-Kuchta-FPV commented Feb 3, 2026

Hi yall,
I've gotten my hands on the SHT21 sensor for a school project. And have written code for it with the help of Copilot.
I have no idea if my PR is welcomed here as you already have SHT3x in te codebase which is way more common.
The code is tested and it works on the target device.
The sensors shares the same addres with INA_ADDR (0x40). I have implemented a flag -D HAS_SHT21=1, but maybe for user confort a probe would be better. What do you think?
Thanks for any sudgestions.

🤝 Attestations

  • I have tested that my proposed changes behave as described.
  • [ x I have tested that my proposed changes do not cause any obvious regressions on the following devices:
    • DIY_V1 (ESP32)

@CLAassistant
Copy link

CLAassistant commented Feb 3, 2026

CLA assistant check
All committers have signed the CLA.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

@Tomas-Kuchta-FPV, Welcome to Meshtastic!

Thanks for opening your first pull request. We really appreciate it.

We discuss work as a team in discord, please join us in the #firmware channel.
There's a big backlog of patches at the moment. If you have time,
please help us with some code review and testing of other PRs!

Welcome to the team 😄

@github-actions github-actions bot added first-contribution needs-review Needs human review hardware-support Hardware related: new devices or modules, problems specific to hardware labels Feb 3, 2026
@fifieldt fifieldt added the enhancement New feature or request label Feb 4, 2026
meshtastic_TelemetrySensorType_BH1750 = 45
meshtastic_TelemetrySensorType_BH1750 = 45,
/* STH21 temperature, R. humidity sensor */
meshtastic_TelemetrySensorType_SHT21 = 46
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code is automatically generated. So another PR to the protobufs repo is needed (with basically the same content)

Copy link
Author

@Tomas-Kuchta-FPV Tomas-Kuchta-FPV Feb 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright regenerated and made a PR in protobufs meshtastic/protobufs#855, thanks

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

Labels

enhancement New feature or request first-contribution hardware-support Hardware related: new devices or modules, problems specific to hardware needs-review Needs human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants