'Serial1' was not declared in this scope


This error indicates that you did not select the right board in Arduino IDE. Make sure that the board selected in the IDE matches the board you selected on circuito.io.
For example, if you chose to use Arduino Micro, you should also choose it in the IDE, as shown below.