I am using an Arduino UNO to get analog readings from 2 sensors. Then, I am sending the product (*) of these 2 values to a NodeMCU via serial communication. The value is received correctly: when I use
- Code: Select all | TOGGLE FULL SIZE
Serial.write(Serial.read())
- Code: Select all | TOGGLE FULL SIZE
x = Serial.read()
Serial.println(x)
different (wrong) values are shown. And these same wrong values are uploaded to Adafruit IO.
So, does anyone know what's happening? Any format or data size differences? Why am I obtaining wrong values? And how to get the correct ones?
Thank you