I have a sensor which its data format is a frame with this format: begin(2 bytes), command(1 byte), data(2 bytes), parity(1 byte).
The 3 first bytes are fixed. the output should be a decimal floating point number:
I want to convert those two data byte to output, but I can’t understand the way to this conversation. Can you help me?