Flame sensor with esp32 cam

@giittte96 I’ve merged your new topic back in to this one, as it’s about the same thing. Please don’t keep creating new topics on the same subject.

First of all, I’d try to avoid names like “Function” for functions, and “BUTTON” and “TIMER” for variables, It will get confusing at some point, especially when you start using timers.

Which brings me on to the fact that you are calling your Function function from from your void loop, instead of using a timer.
Read this:
http://help.blynk.cc/getting-started-library-auth-token-code-examples/blynk-basics/keep-your-void-loop-clean

I think you should read the “Overriding a Timer (auto/manual mode)” section of this topic:

Pete.