fixes for reading temperature