Please post code and error messages in line, using code tags.
Photos of code, especially illegible ones, are useless.
For instructions, see the "How to get the best out of this forum" post, at the head of every forum category.
The compiler doesn't know that the variable called Pyroelectric has any value because you have not told the computer that such a variable exists and you have not given it a value.
If you don't know a simple thing like this I would advise you not to play with pyrotechnics and Arduinos for you own safety.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.