[Free][Windows only] UE4Duino 2 - Arduino (COM port) communication

Yes. You could. And if sensorValue is already of type float, you can just use it directly:


byte* fBuffer = reinterpret_cast<byte*>(&sensorValue);

12.34f was indeed an arbitrary value with an easy to remember sequence of numbers to make sure that the value was being translated correcly in Unreal, even its decimal part.