IMU 9DOF not working on Arduino Leonardo

Hi, I have a IMU 9DOF and i followed the tutorial using the example in the Arduino IDE. It works fine and gives me all the numbers, but i cant get it to work on my Arduino leonardo. I changed the board type and COM port in the tools dropdown menu. When i compile the code i get no errors, but no nothing shows op serial monitor either, its just blank.