How to convert a number to binary ?

If you want to print the binary representation of the value, you have to tell Serial.print() that. Look at the documentation for how.