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
Serial.write(Serial.read())
Code: Select all
x = Serial.read()
Serial.println(x)
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