old_contents: import os
  import time
  import requests
  
  os.system('modprobe w1-gpio')
  os.system('modprobe w1-therm')
  
  temp_sensor = '/sys/bus/w1/devices/28-000005d8be69/w1_slave'
  
  def temp_raw():
      f = open(temp_sensor, 'r')
      lines = f.readlines()
      f.close()
      return lines
  
  def read_temp():
      lines = temp_raw()
      while lines[0].strip()[-3:] != 'YES':
          time.sleep(0.2)
          lines = temp_raw()
  
      temp_output = lines[1].find('t=')
      if temp_output != -1:
          temp_string = lines[1].strip()[temp_output+2:]
          temp_c = float(temp_string) / 1000.0
          temp_f = temp_c * 9.0 / 5.0 + 32.0
          return temp_c, temp_f
  
  def send(val):
      value = {'value': val}
      resp = requests.post('http://tempsensorweb.herokuapp.com/update', data=value)
      return resp
  
  t = read_temp()
  r = send(t[0])
  print(t)
  print(r.status_code)
  
new_contents: import os
  import time
  import requests
  
  os.system('modprobe w1-gpio')
  os.system('modprobe w1-therm')
  
  temp_sensor = '/sys/bus/w1/devices/28-000005d8be69/w1_slave'
  
  def temp_raw():
      f = open(temp_sensor, 'r')
      lines = f.readlines()
      f.close()
      return lines
  
  def read_temp():
      lines = temp_raw()
      while lines[0].strip()[-3:] != 'YES':
          time.sleep(0.2)
          lines = temp_raw()
  
      temp_output = lines[1].find('t=')
      if temp_output != -1:
          temp_string = lines[1].strip()[temp_output+2:]
          temp_c = float(temp_string) / 1000.0
          temp_f = temp_c * 9.0 / 5.0 + 32.0
          return temp_c, temp_f
  
  def send(val):
      value = {'value': val}
      resp = requests.post('http://85.25.216.29:8000/update', data=value)
      return resp
  
  t = read_temp()
  r = send(t[0])
  print(t)
  print(r.status_code)
  
subject: Change of address