Communication with Nextion Display

Hello.
I getting some strange issue.

I create small protect. ESP32 + Nextion 3,2 + DHT22 sensor and relay
Using Nextion display I control relays.
To communicate with the display I'm using Serial, no external lib

On display, I do have 3 buttons. Buttons send command to esp32
From time to time, not constant, ESP restarts or go to an error in button pres moment

Try to understand what is reason I did put Serial.print() command in the display read function
as result, I did get

image
image

From display, I'm sending string like
VENT_OFF|&

Can some one identify a reason of error.

Hello @TomyLimon

Please read the forum instructions: How to get the best out of this forum , particularly the bit about posting code not pictures of code.

Here is my tutorial about Nextion displays: Using Nextion displays with Arduino

If you follow my methods and get stuck I will try to help you. If you want to do your own thing that's OK but it makes it difficult to help you.

Good luck with your project.