Hello, I'm trying to build a basic flame sensor and used silicon carbide photodetector and a trans-impedance amplifier as a part of my circuit and trying to interface it with my arduino to detect the presence of flame or not. I have no idea about setting a particular threshold value beyond which it can detect the presence of flame without giving false alarm. Kindly share your thoughts as it will be very helpful.