added network keepalive

added ping on 300 second timer to keep network connection alive. added
better handling for no/incorrect temp reported.