The analogRead() output is a value in the range 0 to 1023.
The digitalRead() output is a value in the range 0 to 1.
Sending switch data is EXACTLY like sending potentiometer data.
The analogRead() output is a value in the range 0 to 1023.
The digitalRead() output is a value in the range 0 to 1.
Sending switch data is EXACTLY like sending potentiometer data.