display nextion I'm having trouble reading

I was able to do some reading, but only on the same page, I’m trying to put one in each page and I found an example of youtube but when I test it only the first page reading does not appear the reading of the second TT page, reading the “void heart”

Someone knows where the error is, thank you all from now ^^

/*

autor: Lucas Alexandre Silva

data: 05/06/2019

=================================NEUROPAX====================================== */

// ===============================================================================
// — Biblioteca Auxiliar —
#include “Nextion.h” //biblioteca Nextion
#include <dht.h>
#define dedo A3

#define pot A5 //potenciômetro na analógica 5
#include <LM35.h>
#define sensor(A2);

#define dht_pin A1 //pino de sinal do DHT11
dht my_dht;

// – Objetos do Nextion –
NexPage page0 = NexPage(0, 0, “page0”); // (pagina 0, id 0 , nome page0);
NexPage page1 = NexPage(1, 0, “page1”); // (pagina 1, id 0 , nome page1);
NexPage page2 = NexPage(2, 0, “page2”); // (pagina 2, id 0 , nome page2);

NexText txt_temp = NexText(1, 4, “t1”); // exibe numero temperatura local
NexText txt_umid = NexText(1, 3, “t0”); // exibe numero umidade
NexText txt_temp2 = NexText(1, 8, “t4”); // exibe numero umidade
NexText txt_val = NexText(1, 9, “t5”); // exibe numero umidade
NexText txt_cor = NexText(1, 10, “t6”); // exibe numero umidade

NexButton b0 = NexButton(1, 10, “b0”); // Button added
NexButton b2 = NexButton(2, 2, “b2”); // Button added

NexWaveform s0 = NexWaveform(2, 1, “s0”); // grafico batimento cardiaco

NexTouch *nex_listen_list =
{
&b0,
&page1, // Page added as a touch event
&page2, // Page added as a touch event
NULL // String terminated

};

void readTempHumi();

// — Variáveis Globais —

int CurrentPage = 0; // Create a variable to store which page is currently loaded

int temperatura = 0x00, //armazena a temperatura em inteiro
umidade = 0x00; //armazena a umidade em inteiro

int pot_value = 0; //valor ad do potenciômetro

float temp2 = 0;

char txt1[10],
txt2[10],
txt3[10],
txt4[10],
txt5[10],
txt6[10],
txt7[10],
txt8[10],
txt9[10],
txt10[10];

void b0PushCallback(void *ptr) // Press event for button b0
{

CurrentPage == 2;

} // End of press event

// Page change event:
void page1PushCallback(void *ptr) // If page 1 is loaded on the display, the following is going to execute:
{
CurrentPage = 1; // Set variable as 1 so from now on arduino knows page 1 is loaded on the display
} // End of press event

// Page change event:
void page2PushCallback(void *ptr) // If page 2 is loaded on the display, the following is going to execute:
{
CurrentPage = 2; // Set variable as 2 so from now on arduino knows page 2 is loaded on the display
} // End of press event

void setup() {

nexInit(); //inicializa Nextion lib
page0.show(); //vai para pagina 0
delay(2000); //atraso de 2 segundos

page1.show(); //vai para pagina 1
CurrentPage = 1; // Set variable as 1 so from now on arduino knows page 1 is loaded on the display

b0.attachPush(b0PushCallback); // Button press
page1.attachPush(page1PushCallback); // Page press event
page2.attachPush(page2PushCallback); // Page press event

}

void loop() {

if(CurrentPage == 1){ // If the display is on page 1, do the following:

readTempHumi(); //lê temperatura e umidade. Converte valores para exibir no Nextion
}

if(CurrentPage == 2){ // If the display is on page 2, do the following:

coracao();
}

nexLoop(nex_listen_list); // Check for any touch event

}

void readTempHumi()
{

txt_temp.setText(txt1);
txt_umid.setText(txt2);
txt_temp2.setText(txt4);
txt_val.setText(txt5);

txt_val.setText(txt5);
pot_value = analogRead(5);

//Converte inteiros para string
memset(txt5, 0, sizeof(txt5));
itoa(pot_value, txt5, 10);

//Lê parâmetros de temperatura e umidade relativa do ar no DHT11
my_dht.read11(dht_pin);
temperatura = my_dht.temperature;
umidade = my_dht.humidity;
temp2 = analogRead(A2)/2;

//Converte inteiros para string
memset(txt1, 0, sizeof(txt1));
itoa(temperatura, txt1, 10);
memset(txt2, 0, sizeof(txt2));
itoa(umidade, txt2, 10);
memset(txt4, 3, sizeof(txt4));
itoa(temp2 , txt4, 10);

delay(200);

} //end readTempHumi

void coracao()
{
int leitura = analogRead(dedo);
s0.addValue(0, map (leitura, 0, 1024, 0, 255));

}

I'm trying to put one in each page

One what? Pages don't listen to the nextion. The Arduino does.

NexPage page0 = NexPage(0, 0, "page0");    // (pagina 0, id 0 , nome page0);
NexPage page1 = NexPage(1, 0, "page1");    // (pagina 1, id 0 , nome page1);
NexPage page2 = NexPage(2, 0, "page2");    // (pagina 2, id 0 , nome page2);

Silly names for the pages. There is a reason you want to have a new page. The name of the page should reflect that.

  NULL  // String terminated

The thing you are terminating is NOT a String.

CurrentPage == 2;

It is pointless to compare two values when you don't care whether they are the same or not.

s0.addValue(0, map (leitura, 0, 1024, 0, 255));

map() is an unnecessarily complex way of dividing by 4.