improved temperature reading logic in SM