Cutout (1000 * 60 * 10) // cut out in 10 minutes - this is the number of milliseconds to cutout – 1000 is ms per second, 60 is mins per second, 10 is number of minutes
if( millis() – startTime > Cutout) // check if CUTOUT ms has elapsed since motor started
Both of these lines contain a non-ASCII character that looks like a dash when cut/pasted but shows up as a black rectangle in the browser. The first instance is in a comment, but the second is in an 'if' statement. I suspect this is the source of your problem!
As for this code:
if( millis() – startTime > Cutout) // check if CUTOUT ms has elapsed since motor started
break; {
digitalWrite(ledPin, LOW); // LED is off
}
There's a
break keyword with no enclosing
for,
while,
do or
switch statement. Are you sure that's what you wanted here? Remember that the loop function executes repeatedly, for ever. You can't break out of that infinite loop, but you can make the execution stop by writing your own infinite loop inside the loop function.