Serial pin in node-red

hi, i have an installation of node-red with gpio but when i connect an esp32 Tx pin to Rx pin of rpi4 it doesnt show what it sends if i put only gpio pin it shows 0 and 1 (assuming it’s sending something)

now im trying to enable serial uart ttyS0 or something via dietpi-config but im stuck.
please help.
thanks in advice!

i´ve found this topic:

that says you have to add nodered to group dialout but… no success

I apologize… The Rx pin was working fine… my mistake was connecting an esp32 through the Tx2 pin… if it was Tx0 there would be no problem, I simply changed my programming on esp32 and everything is fine.