unable to send integers more than 5 digits from Raspberry pi to Arduino

Hello programmers, I am new to serial communication where I want to send integer values more than 5 digits and I am getting some fishy output.
expected output :
I send " 100000 " from the pi to the Arduino, expected output on the Arduino is also 100000

Connection: Arduino connected to pi via USB

I am adding the .ino and .py files and also the output.

arduino code:

void setup() {
Serial.begin(9600);
}


void loop() {
if (Serial.available() > 0) {
  String data = Serial.readStringUntil('\n');
  Serial.print("You sent me: ");
  Serial.println(data);
}
}

Python code form Raspberry pi:

#!/usr/bin/env python3
import serial
import time
i=100000
io=str(i)
if __name__ == '__main__':
  ser = serial.Serial('/dev/ttyACM0', 9600, timeout=1)
  ser.flush()


  while True:
      ser.write(b"%s" %io)
      line = ser.readline().decode('utf-8').rstrip()
      print(line)
      time.sleep(1)

please help me out

Capture.PNG

Capture.PNG

For short programs please include them in your post between [code] [/code] tags so we don't have to download them. Your code shouldlook like thisand that also makes it easy to copy to a text editor

See How to get the best out of the Forum

...R

We need to see the sending code at the Pi end as well.

Grumpy_Mike:
We need to see the sending code at the Pi end as well.

I have added it now previously I had attached it... but wasn't able to do it so added it in the post as a text itself!

This Simple Python - Arduino demo may help.

Please re-read Reply #1 about using code tags when posting code.

...R