What is a flame sensor and how does it work?

To ensure that the gas is ignited on a hot surface ignition system, the furnace uses a flame sensor to sense the flame.