Serial not declared in this scope

I'm running the I2C_Scanner and get this error on a line with Serial.println("Scanning...");
What have I missed out?

i2c_scanner.ino (1.66 KB)

Solved now. Forgot to change board!

I'm glad to hear you found the solution. Thanks for taking the time to post an update!