Thank you for editing your post. Looks like you have configured your TCP node to look for a port setting to be found in msg.5010 rather than statically configured for port 5010. Also, doesn't the first image show the sensor refusing your connection attempts?
What/which is that TCP client node ? Is there any reason why you aren't using the built in core TCP nodes ? Also which way round is this supposed to be - are you connecting to Node-RED or is Node-RED connecting to the device ?