Stop on black line

Good example of when it's useful to use Serial.print to send the value to the monitor for debugging....

And/or read the documentation for the functions being used.