Update temp_hum.py

Added a smarter way to end the while loop.
Broke up the log file to include temp and hum data on different lines.