Serial Communication

Hello,

I want to send ah value (0-1000) from a arduino to second one.
I have tried to send the data via I2C (Wire library) with array and it works great.
So i want to send the data via Serial (Tx and Rx pin) to the other arduino but it
sends only data from 0-255.

How can i send values (0-1000) as simple as possible from one arduino to another?

best regards
arduino148

The simplest way is with Serial.println(ahValue); and then use atoi() at the other end to convert the text back into a number.

Have a look at the examples in Serial Input Basics - simple reliable ways to receive data. There is also a parse example.

Make sure to have a GND connection between the Arduinos.

...R