Flame sensor is not sending a notification. This is my code can someone explain what's the problem?

[Unformatted code removed by moderator]

@veronia Please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Copy and paste these if you can’t find the correct symbol on your keyboard.

Pete.