Compact miniature high-resolution thermometer