flasherState and interval were coming up as " not declared " when I had them in the set up section, but were ok when I moved them into the loop section.
It verifies now so I guess it's ok, then?
Variables that are declared in a function, like setup() or loop() are only visible inside that function. So a variable declared in setup() won't be visible to the code in loop().
If you need both functions to see those variables, declaring them as global (so putting them at the top of the code, above setup(), for example) is one way to do that. For example:
#define KFLSH_THRESHOLD 562
#define KINTERVAL_A 1000ul
#define KINTERVAL_B 1000ul
const byte pinOut = 12;
const byte pinIn = A5;
// initialize Digital pin 12 as an output:
// initialize Analog pin 2 as an input:
flasherState = analogRead(A5);
flasherState = analogRead(pinIn);
if( flasherState > KFLSH_THRESHOLD )
Look up "variable scope" here: https://www.arduino.cc/reference/en/language/variables/variable-scope--qualifiers/scope/