ESPHome Integration with this Sensor

Does the sensor show as changing when you detect a flame in the ESPHOME logs ?

Also, have a read here, particularly number 11 about code formatting so we can read your code properly