You write "...clicking is heard..." Is that a single click or a click click click ...? After getting the LOW signal, wait a period of time and if it's still low, send the message that there is a flame. Likewise for a HIGH signal. Perhaps instead of a relay, an opto-isolator?