Switch from SOCK_STREAM to SOCK_SEQPACKET
Print sensor data when sending and receiving