# Interface TGS3870 (methane and CO) sensor with arduino

**URL:** <https://forum.sensor.community/t/interface-tgs3870-methane-and-co-sensor-with-arduino/1519>\
**Category:** Uncategorized\
**Created:** [August 26, 2022, 6:57am UTC](https://forum.sensor.community/t/interface-tgs3870-methane-and-co-sensor-with-arduino/1519 "2022-08-26T06:57:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparkvilla](https://forum.sensor.community/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@sparkvilla](https://forum.sensor.community/u/sparkvilla)\
**Post date:** [August 26, 2022, 6:57am UTC](https://forum.sensor.community/t/interface-tgs3870-methane-and-co-sensor-with-arduino/1519/1 "2022-08-26T06:57:03Z")

</div>

Hi all. I am new to the forum and I have basic knowledge of electronics. I am trying to build a small project to to air quality monitoring with arduino and different sensors. I have an Figaro TGS3870 for detecting both methane and carbon monoxide that I would like to interface with arduino. Here are the specs for the sensor. [https://www.figarosensor.com/product/docs/tgs3870-f00\_product%20infomation%28fusa%29\_rev03.pdf](https://www.figarosensor.com/product/docs/tgs3870-f00_product%20infomation%28fusa%29_rev03.pdf)

I have run few google search but I cannot find any material that explain how to do that. I was wandering if some of you can point me in the right direction? Thank you in advance

---

<div class="post-metadata">

**Author:** ![pjg](https://forum.sensor.community/user_avatar/forum.sensor.community/pjg/32/194_2.png) [@pjg](https://forum.sensor.community/u/pjg)\
**Post date:** [August 26, 2022, 9:40am UTC](https://forum.sensor.community/t/interface-tgs3870-methane-and-co-sensor-with-arduino/1519/2 "2022-08-26T09:40:40Z")

</div>

Hi,

it seems to be an analog sensor. So you have to build the circuit on the datasheet and then use such things:

> **[Code for using TGS2602 (VOC) sensor from Figaro](https://forum.arduino.cc/t/code-for-using-tgs2602-voc-sensor-from-figaro/272113)**
>
> Dear all, I'm interested in sketches / libraries with calibration facilities for the TGS2602 (VOC) sensor. I haven't found a dedicated code so far (nor on internet, nor on this forum). Many thanks in advance!

The working link is here:

> <https://github.com/empierre/arduino-mysensors-contribs/blob/4077e7e342663dea4167ecdcb5347426111c6192/AirQuality-Multiple_Gas_Sensor1_4.ino>

You will have to adapt the coefficient.

And this:

Biogas Analyzer Based on Open Source Hardware: Design and Prototype Implementation, Antonio José Calderón and Isaías González

I can’t send pdf here unfortunately

---

<div class="post-metadata">

**Author:** ![sparkvilla](https://forum.sensor.community/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@sparkvilla](https://forum.sensor.community/u/sparkvilla)\
**Post date:** [August 26, 2022, 2:39pm UTC](https://forum.sensor.community/t/interface-tgs3870-methane-and-co-sensor-with-arduino/1519/3 "2022-08-26T14:39:44Z")

</div>

@pjg Thank you very much for your replay. I will have a look at the circuit. I guess this is the only way to interface it with the Arduino…
