Serial Print makes code work. Why?

can you post the code you are using now?