I have a simple question, which I am not able to answer.
Let's say I have a simple if condition on Arduino A. If this if-condition is true, then I want to send a logical 1 to Arduino B, which I tried to do with
digitalWrite(8, HIGH); on Arduino A and
int value = analogRead(A0); on B. So I connected the digital Pin 8 of Arduino A with A0 of Arduino B.
I expected to get 0 if the condition is false and 1023 if its correct. Am I doing something wrong? Or is the complete concept not possible? I know there is also the option to use Serial or I2C, but I have three Arduinos to connect and I want to keep it as simple as possible this time.
Thank you in advance.