https://embetronicx.com/tutorials/microcontrollers/8051/flame-sensor-interfacing-with-8051/
Flame Sensor Interfacing with 8051