Moving analog data over serial

void output64 ()
{
  if (valuecmd > 637)

Novel.
Can I recommend you revise your binary arithmetic?