There is a saying in electronics engineering world: "Every sensor is also a temperature sensor."
What this means is: almost every electronic sensor is affected by it's temperature- from expensive image sensors to cheap MEMS accelerometers and gyroscopes.
That is why many of digital sensors also report their temperature, although that is not their primary purpose- so that current temperature effects on the measured result can be calibrated out either in sensor's logic, or by host software.