Since 2025 we have been bringing environmental sensors to Meshtastic, the open-source firmware for LoRa mesh radios. The work so far includes more than 50 merged pull requests, across different areas of the firmware.
Sensor drivers
Each sensor needs a driver in the firmware and fields in Meshtastic’s telemetry protocol, so that its readings can travel through the mesh, reach the apps and be uplinked over MQTT. We have added to and reworked the AirQualityTelemetry module with the following contributions:
- CO2: Sensirion SCD4X and SCD30, with admin commands for their calibration
- Particulate matter and gases: Sensirion SEN5X, and the SEN6X series with PM, temperature, humidity, CO2, formaldehyde and VOC and NOx indexes; Seeed Studio HM330X; and a rework of the Plantower PMSA003I
- Formaldehyde: Sensirion SFA30
- Temperature and humidity: the Sensirion SHT family, consolidated into a single driver
- Analog inputs: Texas Instruments ADS1X15 converters, up to eight voltage channels
- One-wire probes: up to eight DS18B20 temperature probes through DS2482 and DS2482-800 I2C bridges
- Soil and water: telemetry fields for pH, conductivity, salinity, nitrogen, phosphorus, potassium, nitrate, ammonium, dissolved oxygen, redox potential, turbidity, oxygen demand and solar irradiance
Making sensors reliable
Adding a driver is only part of the job. A sensor that works on a desk has to keep working in the field, on every supported board and alongside the other devices it shares a bus with. That takes careful, often invisible work: respecting each sensor’s start-up and measurement times, handling failed reads and devices that share an address, and testing on real hardware before a change goes upstream. We apply the same care to every sensor we bring to Meshtastic, so that its readings can be trusted.
Check the code
All the work is public on GitHub: the merged pull requests, in meshtastic/firmware and meshtastic/protobufs.