I am using MakeCode to collect the light level from the micro:bit, send the light level using uart in Bluetooth and receive the light level in the app inventor side. The light level can be successfully read in the app inventor side, however sometimes it is not the same as the one displayed on microbit (for example, the light level show on microbit is 30, but the app inventor side read 27), occasionally the reading between the two are the same. (Remarks: reading of 0 light level is always the same between the transmitter and the receiver)
May I know what is the reason on that? The micro:bit remains in position during the whole process.
Since it has been little information on uart sending light level between micro:bit and app inventor, hence a topic is opened for that.
It would be a great pleasure for me if you can answer this question.