TMP 102 temp sensor ouput issue

Hi there, I am fairly new to Mbed os and have recently started to program a TMP 102 sensor hooked up to an, FRDM-K64F, board to just get a temperature reading; using Mbed studio. I have used online libraries through this project, however I am continuously getting an issue in regards to the final output of the system only printing ‘%f’. I have tried over the weeks to debug and find a solution with my code and hardware, with no luck.

Below I have attached my code, as well as all files and results I have gotten.

Any help or advice would be greatly appreciated.

Hello Ivan,

There is nothing wrong with your code. This link might help you understand why it is printing %f and how to fix it.

Note: There is no mbed_app.json file created in a new project by default. You have to create it in the root directory of your project by yourself.

Best regards,