Meowbit has a built-in Temperature Sensor that allows it to detect the ambient temperature.
MakeCode Arcade Coding Tutorial
Load Controller Extension
Blocks for Controller Extension
Detecting the temperature
Kittenblock Coding Tutorial
Blocks for onboard sensors
Detecting the temperature