Stop print from scrolling

You forgot the {} around the code block that your 'if' statement controls...
The result is that

old_something = something;

is executed unconditionally, every time through loop().