Grove - Flame Sensor


5.0V Digital

The Grove - Flame Sensor can be used to detect fire source or other light sources of the wavelength in the range of 760nm - 1100 nm. It is based on the YG1006 sensor which is a high speed and high sensitive NPN silicon phototransistor. Due to its black epoxy, the sensor is sensitive to infrared radiation. In fire fighting robot game, the sensor plays a very important role, it can be used as a robot eyes to find the fire source.


  • Grove Interface
  • High Photo Sensitivity
  • Fast Response Time
  • Easy to use
  • Sensitivity is adjustable


Item Min Typical Max Unit
Voltage 4.75 5.0 5.30 VDC
Current / 20 / mA
Range of Spectral Bandwidth 760 940 1100 nm
Detection range 0 ~ 1 m
Response Time 15 μS
Operating Temperature -25 ~ 85

Platforms Supported


The module is mainly used to detect the infrared light. It outputs digital signal 0 and 1 through a Comparator output. The output value will be 0​​ when infrared light is detected. And the sensitivity is adjustable by the precision potentiometer.

Let’s use it to control. When the output value is 0, the led will light up.

1.Connect the module to the D3 of Grove - Base Shield using the 4-pin grove cable.

2.Plug the Grove - Base Shield into Arduino.

3.Connect Arduino to PC by using a USB cable.

4.Copy and paste code below to a new Arduino sketch.


    #define SENSOR 3 //connect SENSOR to digital pin3
    #define LED 2//connect Grove - LED to pin2

    void setup() 
    void loop() 
      else turnOffLED();
    void pinsInit()
        pinMode(FLAME_SENSOR, INPUT);
    void turnOnLED()
    void turnOffLED()
    boolean isFlameDetected()
            return false;
        else return true;

5.The LED will light up when there is infrared light. Please use it to designed your products.


The sensor can detect the light source whose wavelength is in the range of 760nm - 1100 nm. The picture below shows the spectral sensitivity.


ArduinoWioBeagleBoneRaspberry PiLinkIt ONE


The platforms mentioned above as supported is/are an indication of the module's hardware or theoritical compatibility. We only provide software library or code examples for Arduino platform in most cases. It is not possible to provide software library / demo code for all possible MCU platforms. Hence, users have to write their own software library.

Help us make it better

Thank you for choosing Seeed. A couple of months ago we initiated a project to improve our documentation system. What you are looking at now is the first edition of the new documentation system. Comparing to the old one, here is the progresses that we made:

  • Replaced the old documentation system with a new one that was developed from Mkdocs, a more widely used and cooler tool to develop documentation system.
  • Integrated the documentation system with our official website, now you can go to Bazaar and other section like Forum and Community more conveniently.
  • Reviewed and rewrote documents for hundreds of products for the system’s first edition, and will continue migrate documents from old wiki to the new one.

An easy-to-use instruction is as important as the product itself. We are expecting this new system will improve your experience when using Seeed’s products. However since this is the first edition, there are still many things need to improve, if you have any suggestions or findings, you are most welcome to submit the amended version as our contributor or give us suggestions in the survey below, Please don’t forget to leave your email address so that we can reply.

Happy hacking