Note that you can replace "Serial1" with Serial or Serial2 or whatever Serial ports your particular Arduino has. If you are using an Arduino with only one hardware serial port (like the Arduino UNO) ...
Nextion Arduino library provides an easy-to-use way to manipulate Nextion serial displays. Old deprecated Enhanced Nextion Library with single display support can be found with Release tag 0.12.1 ...