Telnet / TCP problem

Hello,

This is maybe a newbie problem :grinning:.

I have an arduino card that log data via a wifi card esp8266. I can see the log via telnet :

image

I would to like to retrieve this data in HA. I tried with TCP and Telnet sensor without success, for example

 - platform: tcp
    name: xxx
    host: 192.168.1.10
    port: 23
    timeout: 1
    payload: " "
    value_template: "{{ value.split(' ')[6] }}"
    scan_interval:
      seconds: 2

I am new to HA, is it an better way to perform this task ?