# Figaro TGS2620 Sensor Calibration

**URL:** <https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074>\
**Category:** Sensors\
**Created:** [February 10, 2026, 12:27pm UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074 "2026-02-10T12:27:56Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryyyyy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ryyyyy/32/1110990_2.png) [@ryyyyy](https://forum.arduino.cc/u/ryyyyy)\
**Post date:** [February 10, 2026, 12:27pm UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/1 "2026-02-10T12:27:56Z")

</div>

Hello guys,

I need to calibrate Figaro TGS2620 sensor. Should i get Arduino Uno? How can I get the codes for TGS2620 calibration? I would appreciate your help. Thank you...

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [February 10, 2026, 1:45pm UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/2 "2026-02-10T13:45:07Z")

</div>

Do you have the calibration gases?

---

<div class="post-metadata">

**Author:** ![ryyyyy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ryyyyy/32/1110990_2.png) [@ryyyyy](https://forum.arduino.cc/u/ryyyyy)\
**Post date:** [February 10, 2026, 1:53pm UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/3 "2026-02-10T13:53:52Z")

</div>

Hello Jim thanks for the immediate answer. Yes I will order ethanol calibration gases in different ppm ranges (there are these ranges available on internet: 150 ppm/260.5 ppm/130ppm/192 ppm/260 ppm in N2)

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [February 10, 2026, 2:04pm UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/4 "2026-02-10T14:04:24Z")

</div>

Here is the datasheet for the sensor. They seem to use 300ppm to do the calibrations.  
Are you actually trying to measure gas concentrations or do you just want to make an alarm, meaning just detect when the ppm goes over some level.

[Serija-TGS-2620.pdf](https://forum.arduino.cc/uploads/short-url/jMcpNXPNWfACgaemlvTD8EHX0ab.pdf) (645.1 KB)

---

<div class="post-metadata">

**Author:** ![ryyyyy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ryyyyy/32/1110990_2.png) [@ryyyyy](https://forum.arduino.cc/u/ryyyyy)\
**Post date:** [February 10, 2026, 2:08pm UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/5 "2026-02-10T14:08:11Z")

</div>

i need to calibrate it for the baker's yeast facility that i am working which is used for to detect gases like ethanol so the goal is not making an alarm

---

<div class="post-metadata">

**Author:** ![jim-p](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/jim-p/32/922840_2.png) [@jim-p](https://forum.arduino.cc/u/jim-p)\
**Post date:** [February 10, 2026, 2:25pm UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/6 "2026-02-10T14:25:57Z")

</div>

Well, I’ve have never used one of those sensors so I could not supply you with a ready made solution including hardware and software. An alarm can easily be done with an Uno but I have no experience in using that sensor for measuring gas concentrations.

Wait at least 24 hours to see if others can help.

---

<div class="post-metadata">

**Author:** ![robtillaart](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robtillaart/32/1098811_2.png) [@robtillaart](https://forum.arduino.cc/u/robtillaart)\
**Post date:** [February 10, 2026, 3:13pm UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/7 "2026-02-10T15:13:46Z")

</div>

Interesting project,

> [@ryyyyy](#):
>
> TGS2620

A quick google gave no code for this sensor, and little code for possible related sensors.  
(I did not check if these are technical-look-alikes)

The blog might be useful as you might repeat the steps taken.

> **[GitHub - zigpot/tgs2600-on-arduino: basic all you need to do](https://github.com/zigpot/tgs2600-on-arduino)**
>
> basic all you need to do

> **[Setting Up a TGS Gas Sensor for Microcontroller](https://zigpot.wordpress.com/2021/09/29/setting-up-gas-sensor-for-microcontroller/)**
>
> Gas sensors are electronic components that undergo changes in physical characteristic (such as resistivity) in the presence of certain gases in the atmosphere. Gas sensors have many applications, f…

---

<div class="post-metadata">

**Author:** ![ryyyyy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ryyyyy/32/1110990_2.png) [@ryyyyy](https://forum.arduino.cc/u/ryyyyy)\
**Post date:** [February 11, 2026, 8:57am UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/8 "2026-02-11T08:57:40Z")

</div>

Hello, thank you for your answer. By using the datasheet and Python code on the blog I think I can create a code in Python, but I will choose the ethanol curve since that is the gas that I am interested in. Now i have to think about when calibrating it, how i am going to provide ethanol vapor. Videos with Arduino, I just only saw lighter to detect smoke or just simply air. Thank you...

---

<div class="post-metadata">

**Author:** ![robtillaart](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robtillaart/32/1098811_2.png) [@robtillaart](https://forum.arduino.cc/u/robtillaart)\
**Post date:** [February 11, 2026, 9:21am UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/9 "2026-02-11T09:21:04Z")

</div>

Please let us know how your process continues and what your code looks like.

It will be useful for future users of the sensor.

---

<div class="post-metadata">

**Author:** ![robtillaart](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robtillaart/32/1098811_2.png) [@robtillaart](https://forum.arduino.cc/u/robtillaart)\
**Post date:** [February 11, 2026, 11:27am UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/10 "2026-02-11T11:27:36Z")

</div>

Another document of a related sensor (not read it)

> **[TGS2610\_Technical%20Infomation\_rev01.pdf](https://www.figarosensor.com/product/docs/TGS2610_Technical%20Infomation_rev01.pdf)**
>
> 782.69 KB

---

<div class="post-metadata">

**Author:** ![robtillaart](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robtillaart/32/1098811_2.png) [@robtillaart](https://forum.arduino.cc/u/robtillaart)\
**Post date:** [February 11, 2026, 12:44pm UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/11 "2026-02-11T12:44:21Z")

</div>

Throwed some estimated points from the TGS2620 datasheet in spreadsheet

Approximations of calibrate parameters PPM = a \* pow(Rs/R0, b);

| graph | a | b |
| --- | --- | --- |
| methane | 40326,4527 | -2,4245189 |
| CO | 1354,64785 | -1,7801573 |
| ISO-butane | 563,810190 | -1,7098237 |
| Hydrogen | 358,088021 | -1,8791876 |
| Ethanol | 320,799771 | -1,5398176 |

```arduino
Spreadsheet raw numbers 
f(x) = 40326,4526622636 x^-2,42451890362475
f(x) = 1354,64785299791 x^-1,78015730335775
f(x) = 563,810189715868 x^-1,70982365658289
f(x) = 358,088020604221 x^-1,87918756975433
f(x) = 320,799770799109 x^-1,53981762140293

```

Note: TGS2600/10 have other calibration numbers for same gases

---

<div class="post-metadata">

**Author:** ![robtillaart](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robtillaart/32/1098811_2.png) [@robtillaart](https://forum.arduino.cc/u/robtillaart)\
**Post date:** [February 11, 2026, 4:33pm UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/12 "2026-02-11T16:33:19Z")

</div>

@ryyyyy  
Yesterday and today I wrote an initial version of an Arduino library (C++) for the TGS2620.

The library can be used with an internal ADC or an external one.

It is not tested with hardware however I expect it to work as it was not that complex.

If possible, please give it a try.

> **[GitHub - RobTillaart/TGS2620: Arduino library for TGS2620 and compatibles](https://github.com/RobTillaart/TGS2620)**
>
> Arduino library for TGS2620 and compatibles

---

<div class="post-metadata">

**Author:** ![ryyyyy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ryyyyy/32/1110990_2.png) [@ryyyyy](https://forum.arduino.cc/u/ryyyyy)\
**Post date:** [February 12, 2026, 8:20am UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/13 "2026-02-12T08:20:40Z")

</div>

Hello Rob, thank you so much for your time. Yesterday I started to write the code on Python as well and I got this equation: 378.36x^-1.62. It is not finalized yet, but I will be trying your code with Arduino Uno and see if it works, and let you guys know.

---

<div class="post-metadata">

**Author:** ![robtillaart](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robtillaart/32/1098811_2.png) [@robtillaart](https://forum.arduino.cc/u/robtillaart)\
**Post date:** [February 12, 2026, 8:48am UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/14 "2026-02-12T08:48:19Z")

</div>

> [@ryyyyy](#):
>
> 378.36x^-1.62.

Found with spreadsheet this formula for Ethanol which has different coefficients  
f(x) = 320,799770799109 x^-1,53981762140293

The points I used

| Ethanol | |
| --- | --- |
| 3,6 | 50 |
| 2 | 100 |
| 1 | 300 |
| 0,48 | 1000 |
| 0,2 | 4000 |

Which points did you use?

---

<div class="post-metadata">

**Author:** ![ryyyyy](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/ryyyyy/32/1110990_2.png) [@ryyyyy](https://forum.arduino.cc/u/ryyyyy)\
**Post date:** [February 12, 2026, 9:05am UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/15 "2026-02-12T09:05:22Z")

</div>

From the TGS2620 datasheet - Rs/Ro vs gas concentration ppm graph: for 100 ppm we have 2 Rs/Ro, 300 ppm = 1 Rs/Ro, 500 ppm = 0.7 Rs/Ro, 1000 ppm = 0.5 Rs/Ro, 3000 ppm = 0.3 Rs/Ro, 5000 ppm = 0.2 Rs/Ro. I wrote the python code as:  
'from scipy.optimize import curve\_fit  
import matplotlib.pyplot as plt  
import numpy as np

x = [2, 1, 0.7, 0.5, 0.3, 0.2]  
y = [100, 300, 500, 1000, 3000, 5000]  
popt, pcov = curve\_fit(lambda fx,a,b: a\*fx\*\*-b, x, y)  
x\_linspace = np.linspace(min(x), max(x), 100)  
power\_y = popt[0]_x\_linspace_\*-popt[1]  
plt.xlabel('rs/ro')  
plt.ylabel('concentration (ppm)')  
plt.scatter(x, y, label='data points', c= 'red', alpha = 0.5, s = 18)  
plt.plot(x\_linspace, power\_y, label='power fit regression (smooth)')  
plt.legend()  
plt.show()  
print('The regressions equation is {:.2f}x^-{:.2f}'  
.format(popt[0],popt[1]))'  
and it gave me that eqn.

---

<div class="post-metadata">

**Author:** ![robtillaart](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robtillaart/32/1098811_2.png) [@robtillaart](https://forum.arduino.cc/u/robtillaart)\
**Post date:** [February 12, 2026, 9:27am UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/16 "2026-02-12T09:27:38Z")

</div>

Thanks, 2 points are the same.

Will make a note to check the values I extracted from the datasheet again.

* * *

update: created a GitHub issue for this

> <https://github.com/RobTillaart/TGS2620/issues/2>
>
> See https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/16

---

<div class="post-metadata">

**Author:** ![robtillaart](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/robtillaart/32/1098811_2.png) [@robtillaart](https://forum.arduino.cc/u/robtillaart)\
**Post date:** [February 14, 2026, 11:21am UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/17 "2026-02-14T11:21:06Z")

</div>

> [@ryyyyy](#):
>
> x = [2, 1, 0.7, 0.5, 0.3, 0.2]  
> y = [100, 300, 500, 1000, 3000, 5000]

FYI,

Checked my library points and your points against the graph in the datasheet

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/c/1/b/c1bc144eeff2f405d52870104f458011d28bb75b.png)

Think the last two points are not 100% correct  
and you could add the first point for 50 PPM  
as that part of the working range was missing.

x = [2.3, 2, 1, 0.7, 0.5, 0.2, 0.19]  
y = [50, 100, 300, 500, 1000, 4000, 5000]

---

<div class="post-metadata">

**Author:** ![kettenraucher0](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/kettenraucher0/32/1126611_2.png) [@kettenraucher0](https://forum.arduino.cc/u/kettenraucher0)\
**Post date:** [April 23, 2026, 11:16pm UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/18 "2026-04-23T23:16:42Z")

</div>

Please check the FIGARO manual. The Sensor runs only in air.  
Use Calibration Gas in air or use calibration gas with higher concen-  
tration in nitrogen and dilute it with air. The sensor shows only the  
"correct" concentration in air because it is a "half conducting (?)" sensor  
which works only in the presence of about 20,9 % of oxygen, s.Figaro

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [October 20, 2026, 11:16pm UTC](https://forum.arduino.cc/t/figaro-tgs2620-sensor-calibration/1430074/19 "2026-10-20T23:16:52Z")

</div>

Closed on October 20, 2026, 11:16pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
