Picture #2 is a photo-transistor, although more likely it is an IR receiver IC/ See
https://www.digikey.com/product-det...-opto-division/TSOP34438/TSOP34438-ND/4074442
The "IR Sensor" is a bit wierd because the arrows show emission.
A LED can sense as well as source radiation. It's not a normal application.
The schematic confuses me.
An IR sensor diode could pick up flame emissions in the IR spectrum. It would be sensitive to room light too.
The sensor is being operated in reverse bias, so photoconductive mode.
https://www.researchgate.net/post/W...hotconductive_photovoltaic_mode_in_photodiods
You picked a non-easy circuit to try to understand.