-1 appears after pressing the reset button in serial monitor

Hey

I need some help on removing -1 from my serial monitor data.
Actually, I interfaced STM board and Arduino using I2C and I am getting the desired data in Serial Monitor. However, initially (first time only) I am getting '-1' or '-' after pressing the rest button or automating mode. Due to this my whole structured is getting disturbed.

Could anyone tell my how to avoid the -1 or - ?

Thanks in advance!

Have you tried using a short delay after boot up, before initiating serial communications? Also if your PC side program is that sensitive to initial data, you need to implement a more robust protocol. Apart from that, nobody can guess because you haven't posted your code (in code tags please), or explained what you are doing with the serial data.

Thanks aarg,

Let me see with some short of delay then I will come back .