Nextion diplay not receiving text from Arduino

I recently got a new Nextion display 3.5".
On the nextion Editor I created a basic project with two buttons as On & OFF to access the LED connected on the pin 13 of arduino.
I have successfully been able to do that, but I also created a text on the display to show the status of the LED which is not working.

Please help me find out the problem.

The display image

The code

#include <Nextion.h>

const int led = 13;

//Declare your Nextion objects , pageid, component id., component name

NexButton b0 = NexButton(0,2,"b0");
NexButton b1 = NexButton(0,3,"b1");
NexText t0 = NexText(0,4,"t0");

//Register a button object to the touch event list

NexTouch *nex_listen_list[] = {
  &b0,
  &b1,
  NULL
};

//Button b0 component popcallback function
// When ON button is Released the LED turns ON and the state text changes

void b0PopCallback(void *ptr){
  t0.setText ("State:ON");
  digitalWrite(led,HIGH);
}

//Button b1 component popcallback function
// When OFF button is released the LED turns OFF and the state text changes

void b1PopCallback(void *ptr){
  t0.setText ("State:OFF");
  digitalWrite(led,LOW);
}
void setup(void) {
  Serial.begin(9600);
  nexInit();
  //Register the pop event callback function of the components

  b0.attachPop(b0PopCallback,&b0);
  b1.attachPop(b1PopCallback,&b1);

  pinMode(led,OUTPUT);
  digitalWrite(led,LOW);

}

void loop() {
  nexLoop(nex_listen_list); 

}

Project.zip (13.3 KB)

Hello Nemo,

I'm surprised to be saying this to someone who has done as much as you obviously have, but here goes with my standard text for anyone asking for help with Nextion displays:

Support for Nextion on these fora is pretty much as follows:
You can follow the methods I set out in using Nextion displays with Arduino. My methods do not use the Nextion libraries, so while I am happy to offer help on using my methods I cannot offer anything very helpful for any Nextion library.
The original Nextion libraries are full of bugs. There is a link from my tutorial to some improved Nextion libraries created by Ray Livingston, I suggest those might be worth trying if you prefer to use a library.
There's also a separate Easy Nextion Library by Seithan, his methods are different to mine, choose which works best for you.
Beyond that the odd person occasionally offers a bit of help but not much.

My tutorial includes code for sending text to a text box.

Good luck with your project.