How clean master measure device temperature
if there is no hardware support (sensor) is present in device


That's your mistaken assumption. Even dumbphones contain digital thermometers, to allow them to protect themselves against overheating when charging. Most smartphones will contain more than one temperature sensor: one in the battery, to detect if the battery is overheating, and one attached to the SoC, too see how warm it is getting under load. The SoC temperature is needed for the phone to be able to power-manage correctly, and to underclock the CPU and GPU if they're getting too hot.