Removed Some Delays and shifted the downtime to polling the temprature sensor a few times. Provides a more accurate measurement.