:description:Instructions for setting up SGP30 CO₂eq and Volatile Organic Compound sensor
:image:sgp30.png
The ``sgp30`` sensor platform allows you to use your Sensiron SGP30 multi-pixel gas
(`datasheet <https://www.sensirion.com/fileadmin/user_upload/customers/sensirion/Dokumente/0_Datasheets/Gas/Sensirion_Gas_Sensors_SGP30_Datasheet.pdf>`__) sensors or the SVM30 breakout-boards (`product page <https://www.sensirion.com/en/environmental-sensors/gas-sensors/multi-gas-humidity-temperature-module-svm30/>`__) with ESPHome.
The :ref:`I²C Bus <i2c>` is required to be set up in your configuration for this sensor to work.
..figure:: images/eco2-tvoc.png
:align:center
:width:80.0%
..code-block:: yaml
# Example configuration entry
sensor:
- platform: sgp30
eco2:
name: "Workshop eCO2"
accuracy_decimals: 1
tvoc:
name: "Workshop TVOC"
accuracy_decimals: 1
address: 0x58
update_interval: 5s
Configuration variables:
------------------------
-**eco2** (**Required**): The information for the CO₂eq. sensor.
-**name** (**Required**, string): The name for the CO₂eq sensor.
-**id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas.
- All other options from :ref:`Sensor <config-sensor>`.
-**tvoc** (**Required**): The information for the total Volatile Organic Compounds sensor.
-**name** (**Required**, string): The name for the humidity sensor.
-**id** (*Optional*, :ref:`config-id`): Set the ID of this sensor for use in lambdas.
- All other options from :ref:`Sensor <config-sensor>`.
-**address** (*Optional*, int): Manually specify the i^2c address of the sensor.
Defaults to ``0x58``.
-**update_interval** (*Optional*, :ref:`config-time`): The interval to check the
For best performance and faster startup times, the current **baseline** needs to be persistently stored on the device before shutting it down and set again accordingly after boot up
that also means that if the sensor reboots at a time when the air is less clean than normal,
the values will have a constant offset and cannot be compared to the values before the last
boot.
To do this, let the sensor boot up with no baseline set and let the sensor calibrate itself. After around 12 hours you can then view the remote logs on the ESP. The next