Thanks for your reply.
I changed the wiring to this:
and the yaml code to this:
# part 3:
uart:
id: uart_bus
baud_rate: 115200
rx_pin: 5
tx_pin: 6
Log file
[15:55:50][C][uart.idf:116]: UART Bus:
[15:55:50][C][uart.idf:117]: Number: 0
[15:55:50][C][uart.idf:118]: TX Pin: GPIO6
[15:55:50][C][uart.idf:119]: RX Pin: GPIO5
[15:55:50][C][uart.idf:121]: RX Buffer Size: 256
[15:55:50][C][uart.idf:123]: Baud Rate: 115200 baud
[15:55:50][C][uart.idf:124]: Data Bits: 8
[15:55:50][C][uart.idf:125]: Parity: NONE
[15:55:50][C][uart.idf:126]: Stop bits: 1
Still no data from the sensor. Did I do it correct?