# PR for balena sensor, adding SGP30

**URL:** <https://forums.balena.io/t/pr-for-balena-sensor-adding-sgp30/354024>\
**Category:** balenaSense\
**Created:** [March 7, 2022, 7:18am UTC](https://forums.balena.io/t/pr-for-balena-sensor-adding-sgp30/354024 "2022-03-07T07:18:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nmaas87](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/nmaas87/32/5570_2.png) [@nmaas87](https://forums.balena.io/u/nmaas87)\
**Post date:** [March 7, 2022, 7:18am UTC](https://forums.balena.io/t/pr-for-balena-sensor-adding-sgp30/354024/1 "2022-03-07T07:18:17Z")

</div>

Dear @alanb128 - I PR’d a partial add of the SGP30 sensor, which will add VOC and C02 readouts. Sadly H2 and Ethanol do not work, as the included kernel module for the SGP30 is too old (seems to be an upstream problem - and adding this by hand will probably be very time consuming for your guys). Could you please have a look and accept it if its ok? Thanks 🙂

> <https://github.com/balenablocks/sensor/pull/10>
>
> C02 (ppm) and VOC (ppb) are supported, Ethanol and H2 are removed because not su…pported in the outdated SGP30 driver in the iio.

Cheers,

Nico

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [March 10, 2022, 5:42pm UTC](https://forums.balena.io/t/pr-for-balena-sensor-adding-sgp30/354024/3 "2022-03-10T17:42:25Z")

</div>

Hello Nico, thanks for the PR! It may take a few days but I will definitely check it out.

---

<div class="post-metadata">

**Author:** ![nmaas87](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/nmaas87/32/5570_2.png) [@nmaas87](https://forums.balena.io/u/nmaas87)\
**Post date:** [March 11, 2022, 1:53pm UTC](https://forums.balena.io/t/pr-for-balena-sensor-adding-sgp30/354024/4 "2022-03-11T13:53:23Z")

</div>

Thank you.  
After that I might be able to push an additional change, adding Username/Password and TLS Certificate functionality to it. But regarding the Certs, I am currently thinking on how to handle them. At the moment there is only a manual push available, with the need to put the CA and Cert/Key file into the folder. I’d like to add them via a environment variable, however that would have security implications - so I don’t know how to do it like that in a secure way… Hence I’ll probably stray away from that option.
