arduino mega 2560 not working properly

In this thread, OP is using Serial1.