In the case of working with a MCU:
Note: the Flame Sensor is used for detecting fire without any fire-protection for itself, please keep distance from the fire to avoid damage.