I am simulating the values in an LDR to be presented on the LCD Display. I used Serial Monitor for the Debugger. It turns out that on the serial monitor, the real value is correct, but on the LCD, it is adding an extra character, "2", which in this case, the LDR value on the serial monitor, does not have. I checked the code, it's correct too. Is it a bug? Below is the simulation. Sometimes it goes back to normal and crashes again.