I want to send five potentiometer values (bytes) through ZigBee using Arduino. I stored the potentiometer values in five different variables (bytes) and used
Serial.print(pot1);
Serial.print(pot2);
.
.
Serial.print(pot5);
The problem is that, when I am varying the potentiometer values, in the receiver section it is coming as 49, 55, 57, etc. (always changing), instead of some constant value from 0-255. (I am using Serial.read()
function five times.)
How can I fix this problem?
q