Serial monitor infinite output

actually, im using a device which outputs digital signals...and it is connected in pin 12 of my arduino.

And is the ground of this device connected to the ground of the arduino. If not then it floats.