Micro:bit has a built-in temperature sensor that measures the ambient temperature based on the microcontroller chip’s temperature. This sensor can detect changes in environmental temperature, although it is not as accurate as a dedicated thermometer. Temperature data can be accessed through programming using Python, JavaScript, or block-based coding in Microsoft MakeCode.