+# SPDX-FileCopyrightText: 2021 Melissa LeBlanc-Williams for Adafruit Industries
+#
+# SPDX-License-Identifier: MIT
 import time
+import sys
 import board
 import busio
 
 
 if not 0x18 in i2c.scan():
     print("Didn't find MCP9808")
-    exit()
+    sys.exit()
+
 
 def temp_c(data):
     value = data[0] << 8 | data[1]
         temp -= 256.0
     return temp
 
+
 while True:
     i2c.writeto(0x18, bytes([0x05]), stop=False)
     result = bytearray(2)