STM32L011 temperature sensor - almost constant output
I would recommend you to take a look at stm32 examples (STM32CubeL0):

They have example for how to read the internal temperature sensor. They are using HAL library but you can easily backtrace the code so that you undestand what registers that are being set and in what order.