# How to use VOC-LP TAG

**URL:** <https://forum.hardwario.com/t/how-to-use-voc-lp-tag/702>\
**Category:** TOWER\
**Created:** [April 10, 2022, 8:45pm UTC](https://forum.hardwario.com/t/how-to-use-voc-lp-tag/702 "2022-04-10T20:45:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![findmyname](https://forum.hardwario.com/letter_avatar_proxy/v4/letter/f/f0a364/32.png) [@findmyname](https://forum.hardwario.com/u/findmyname)\
**Post date:** [April 10, 2022, 8:45pm UTC](https://forum.hardwario.com/t/how-to-use-voc-lp-tag/702/1 "2022-04-10T20:45:05Z")

</div>

Hello all,

I bought a few [VOC-LP](https://tower.hardwario.com/en/latest/hardware/about-voc-tag/) tags recently.  
I planned to used them with a board which is deviation of esp32-s2.  
I’m using esp-idf framework for programming.

However it seems that isn’t really easy to do it so 😸  
I found two open source libs [1](https://github.com/fregmented/SGP30_ESP-IDF), [2](https://github.com/co-env/esp32_SGP30) for sensor `SGP30`.  
For some reason any of these don’t work properly with VOC-LP TAG.

Both were failing when readings measured values. I started to debug 2nd lib. I figure-out that the issue was with wait interval/delay between sending the i2c command to sensor and reading it:

- [TWR uses 150 ms](https://github.com/hardwario/twr-sdk/blob/master/twr/src/twr_sgpc3.c#L10).
- [ESP lib uses 20ms](https://github.com/co-env/esp32_SGP30/blob/master/src/SGP30.c#L101).

FYI it seems that delay should be higher in all commands for VOC-LP TAG.  
Once I adjusted the ESP lib to match TWR delay it stopped failing.  
I was running measurements for 25 hours in my test script / app.  
**eCO2** values were fluctuating between **10-30** so it seems to work somehow but **TVOC** values were **65535 ppb** all the time. It is worth to mention that I didn’t set any humidity before measurement.

I have a few questions in my mind. It would be super cool if somebody would find the time to help me find answers:

1. **VOC-LP TAG** has 5 pins. 4 of them are common for i2c sensors but I’m not familiar with the pin marked as INT. Does this INT pin needs to be connected to the board for measurements ? if so how to use it 🫤
2. **VOC-LP TAG** has really low power consumption. It should be around **0.065 mA** per info from [ESHOP](https://shop.hardwario.com/voc-lp-tag/). How is it possible that it is so effective ? In comparison [VOC TAG](https://tower.hardwario.com/en/latest/hardware/about-voc-tag/) and original [SGP30 sensor](https://tower.hardwario.com/en/latest/hardware/about-voc-tag/) claim power consumption around **48 mA**. I’m asking whether I had to do something special in order to achieve such low power consumption.
3. I noticed state **TWR\_SGPC3\_STATE\_SET\_POWER\_MODE**  
in [TWR lib](https://github.com/hardwario/twr-sdk/blob/master/twr/src/twr_sgpc3.c#L171). However it isn’t called within the file. So I wonder what it should be used for ?
4. Do you have any idea why my measurements were **65535 ppb** all the time in my case?
5. I also noticed that TWR lib always expect to set humidity **TWR\_SGPC3\_STATE\_SET\_HUMIDITY** after init state - [link](https://github.com/hardwario/twr-sdk/blob/master/twr/src/twr_sgpc3.c#L256). Is it expected that this VOC-LP TAG always run by side with some humidity sensor / TAG ?
6. I planned to disconnect VOC-LT TAG from power every time after measurements e.g. to do measurements in intervals. Is it OK strategy for VOC-LP TAG?

Looking forward to your replies.

Thx  
BR  
Adrian

---

<div class="post-metadata">

**Author:** ![hub.martin](https://forum.hardwario.com/user_avatar/forum.hardwario.com/hub.martin/32/631_2.png) [@hub.martin](https://forum.hardwario.com/u/hub.martin)\
**Post date:** [April 13, 2022, 10:14am UTC](https://forum.hardwario.com/t/how-to-use-voc-lp-tag/702/2 "2022-04-13T10:14:10Z")

</div>

Hello Adrian,

1. On this TAG, the INT interrupt pin is unconnected. See [bc-hardware/bc-tag-voc-rev-1-0-sch.pdf at master · hardwario/bc-hardware · GitHub](https://github.com/hardwario/bc-hardware/blob/master/out/bc-tag-voc/bc-tag-voc-rev-1-0-sch.pdf)
2. 65 uA is the sleep current. You have to also add some uA because on that VOC-LP TAG there is also an LDO chip. See schematic above.  
 ![image](https://forum.hardwario.com/uploads/default/original/1X/6e1cca914bfa6b33fb0cc0be08ba0498f2684b9d.png)
3. You are right, this state seems like is not used in our SDK. You can track the function based on a command that [is sent to the sensor.](https://github.com/hardwario/twr-sdk/blob/master/twr/src/twr_sgpc3.c#L177). I’m not able to help you more.
4. 65535 is the maximal `uint16` value. So it might be because conversion or some command wasn’t triggered? You’ll have to dig deeper into the original datasheet.  
[https://www.mouser.com/pdfdocs/Sensirion\_Gas\_Sensors\_SGP30\_Datasheet\_EN-1148053.pdf](https://www.mouser.com/pdfdocs/Sensirion_Gas_Sensors_SGP30_Datasheet_EN-1148053.pdf)
5. According to the datasheet you can run without humidity compensation  
 ![image](https://forum.hardwario.com/uploads/default/original/1X/e3a5d83f58d3f77047c75fcff9c33d729fc3e64e.png)
6. The sensor needs at least 24 hours to display reliable data. So I don’t think that power cycling is right way to save power.

I would rather suggest studying the original datasheet than sticking with our SDK implementation.  
[https://www.mouser.com/pdfdocs/Sensirion\_Gas\_Sensors\_SGP30\_Datasheet\_EN-1148053.pdf](https://www.mouser.com/pdfdocs/Sensirion_Gas_Sensors_SGP30_Datasheet_EN-1148053.pdf)

---

<div class="post-metadata">

**Author:** ![findmyname](https://forum.hardwario.com/letter_avatar_proxy/v4/letter/f/f0a364/32.png) [@findmyname](https://forum.hardwario.com/u/findmyname)\
**Post date:** [April 18, 2022, 9:27pm UTC](https://forum.hardwario.com/t/how-to-use-voc-lp-tag/702/3 "2022-04-18T21:27:25Z")

</div>

Hi @hub.martin ,

First of all thx for reply.

I spend several hours on it during Easter holiday 🙂 … I was reading datasheet, code, testing, etc and here are some notes …

It seems that VOC-LP TAG doesn’t use SGP30 sensor but SGPC3. The sensors are similar but the later one provides TVOC values only. Links to datasheets just for the reference: [SGP30](https://www.mouser.com/pdfdocs/Sensirion_Gas_Sensors_SGP30_Datasheet_EN-1148053.pdf), [SGPC3](https://sensirion.com/media/documents/0E2E7340/617BDB64/Sensirion_Gas_Sensors_Datasheet_SGPC3.pdf).

There are actually two separate TWR libs for these sensors. I noticed these differences as far my concern is going:

- [sgpc.c](https://github.com/hardwario/twr-sdk/blob/master/twr/src/twr_sgpc3.c#L237) uses init command `{ 0x20, 0xae };` but [sgp30.c](https://github.com/hardwario/twr-sdk/blob/master/twr/src/twr_sgp30.c#L219) uses `{ 0x20, 0x03 };`.
- [sgpc.c](https://github.com/hardwario/twr-sdk/blob/master/twr/src/twr_sgpc3.c#L332) reads only TVOC value from measurement, [sgp30.c](https://github.com/hardwario/twr-sdk/blob/master/twr/src/twr_sgp30.c#L315) reads both TVOC and eCO2.
- Now I understand why this tag is called `low power` one because `sgpc3` has two power modes: lower power and ultra-low power:

```auto
The SGPC3 offers two operation modes with different power consumptions and sampling intervals. The low-power mode with
1mA average current and 2s sampling interval and the ultra-low power mode with 0.065mA average current and 30s sampling
interval. By default, the SGPC3 is using the low-power mode.

```

Looking back on your reply to 2nd point:

```auto
65 uA is the sleep current. You have to also add some uA because on that VOC-LP TAG there is also an LDO chip. See schematic above.

```

Now we know that 65 uA refers to the consumption in ultra-low power mode.

_Some questions to think about:_

- It seems that TWR lib doesn’t enable ultra-low power mode. Maybe the reason was to don’t affect sensor accuracy? There is a warning in sgpc3 datasheet but I’m not quite sure whether the accuracy is affected also when ultra-low mode is enabled:

```auto
It is recommended to test the two modes on different SGPC3 sensors, as switching the power mode back and forth with the
same sensor will impact sensor accuracy. 

```

- Currently I’m not sure if VOC-LP TAG reports TVOC values in range `0 ppb to 60000 ppb` as defined in sgpc3 datasheet or it provides some indexed values. There is some table on [VOC-LP TAG eshop page](https://shop.hardwario.com/voc-lp-tag/). Does this table provides some indexes or it just describes 0-60000 ppb range?

TLDR it seems that ESP lib somehow works with VOC-LP tag after adjustments because `sgpc3` provides only one value (TVOC) but I/It expects two as it was designed for SGP30. So value \*\* **65535** I referenced above is just redundant one for sgpc3 sensor.

Thx  
BR  
Adrian

---

<div class="post-metadata">

**Author:** ![hub.martin](https://forum.hardwario.com/user_avatar/forum.hardwario.com/hub.martin/32/631_2.png) [@hub.martin](https://forum.hardwario.com/u/hub.martin)\
**Post date:** [April 25, 2022, 12:46pm UTC](https://forum.hardwario.com/t/how-to-use-voc-lp-tag/702/4 "2022-04-25T12:46:15Z")

</div>

Now I see that I linked the wrong schematics of “VOC” and not “VOC-LP”. Sorry for the confusion.

The sensor is not put to sleep between measurements, because after wake-up, it needs at least 24 hours to calibrate. And our projects send values a few times every hour.

The sensor should reply with `0 ppb to 60000 ppb `, which nicely fits that 16-bit value/register. The table on our e-shop is there just for illustration.

---

<div class="post-metadata">

**Author:** ![hub.martin](https://forum.hardwario.com/user_avatar/forum.hardwario.com/hub.martin/32/631_2.png) [@hub.martin](https://forum.hardwario.com/u/hub.martin)\
**Post date:** [November 25, 2026, 8:43am UTC](https://forum.hardwario.com/t/how-to-use-voc-lp-tag/702/5 "2026-11-25T08:43:46Z")

</div>


