Reading temperature from Multipurpose sensor

I am new to SmartThings and reading the documentation is very confusing

I would like to read the temperature from a multipurpose sensor and use API to stream the data to a file.
Should I be looking into device type handlers or smartapps? Can anyone please direct me to sample code or notes on how I should proceed.

Much appreciated !

Someone much more knowledgeable can probably answer this one, but to get you going you might take a look at AskAlexa ( and see how it is reading the values. Might give you some ideas until someone else can answer better

I will read that. Thank you