The Flame Sensor for the Marey 30LP/NG Tankless Water Heater is designed to detect the presence of a flame during operation, ensuring the unit runs safely and efficiently. If no flame is detected, the sensor signals the system to shut off the gas supply, preventing potential leaks and maintaining a high standard of safety and reliability.