Sorry this one is so long...
With the parts I have, this is the diagram of how I am thinking this would work (looking for a simple, cheap solution with no computational overhead that can easily be implemented in a variety of setups).
Flame Sensor -
https://www.amazon.com/Infrared-Sensor-Detector-Smartsense-Arduino/dp/B07D1HNHN4
Specifications:
The working voltage: 3.3V-5V
The output format: DO digital switching outputs (0 and 1) and AO analog voltage output (not on this unit)
Comparator: wide voltage LM393
Length: 4.5cm / 1.77in
Weight: 4g
Product wiring description:
VCC: 3.3-5V power supply "+"
GND: power supply "-"
DO: TTL switch signal output.
AO: analog signal output (voltage signal) (again, not on this unit)
Instructions for use:
1. the flame sensor is most sensitive to flame, for ordinary light, it is also responsive
, generally used as a flame alarm purposes.
2. the output interface can be directly connected to the micro-controller IO port.
3. The sensor must be kept at a distance from the flame to avoid damage to the sensor.Lighter flame test distance of 80cm, for the greater flame, the farther the distance test
4. Analog output and the AD conversion process, can achieve higher accuracy
5. When the sensor detects a flame, sunlight, or infrared light, if achieve potentiometer setting threshold, the green indicator light will ON, the DO output low level (0-0.1 - V), the green light is OFF, the DO output about 3 V high voltage level
Relay -
https://www.amazon.com/Valefod-1-Channel-Optocoupler-Isolation-Trigger/dp/B07WQH63FB
Specifications:
- Relay Type: 5V 1-Channel
- TTL gate circuit
- Quiescent Current: 5mA
- Maximum Current: 190mA
- Trigger Current: 3 - 5mA
- Trigger Voltage(LOW): 0 - 1.5V
- Trigger Voltage(HIGH): 2.5 - 5V
- NO Maximum Load: AC 250V, 10A or DC 30V, 10A
- Power Indicator: Green
- Relay Status Indicator: Red
- Size(L x W x H): 51*26*19mm
- Weight: 17g
How high/low level triggers selection terminal
- High level trigger acts when jumper wire and high pin are short connected
- Low level trigger acts when jumper wire and low pin are short connected
Input interface:
DC+ : positive pole of power supply (VCC, voltage=5V)
DC- : negative pole of power supply(GND)
IN : connection to control relay pickup by high/low level trigger
Output interface:
NO : connection of normally open state(the relay switch is dangling before pickup, the switch will connect with "COM" after pickup)
COM : common interface of relay switch
NC : connection of normally closed state(the relay switch is connected with "COM" before pickup, the switch will be dangling after pickup)
So, where am I going wrong? Where would a diode be placed in this setup? What other parts am I missing?
Also, can the IR sensor on the flame sensor unit be removed from the PCB and the wiring extended so that the sensor can be more easily placed to 'see' the case neck in the coil (without compromising its ability to reliably sense)?