Does my phone have a temperature sensor?
Furthermore, can a smartphone be used as a thermometer?
With the right app, your Android smartphone or tablet can function as a thermometer using your device's built-in temperature sensor. However, even if your mobile device is not equipped with a temperature sensor, there is still a way to get a decent temperature reading for the surrounding air.
Also question is, how do I know if my phone has a temperature sensor?
if you want to know what kinds of temperature sensors does your phone have, you can use one APP called: SensorSense to check. "SensorSense" is an application that shows various sensor parameters of Android phones. With this app, you can instantly turn your phone into a multi-function sensor data collector.
There are many high-end Android phones like Pixel and iPhones that include a barometer in their hardware. The barometer measures the air pressure, so it is quite useful in detecting weather changes and in calculating the altitude you're at.