   SPI.setDataMode( SPI_MODE1 );
 
   thunder_init();
+
+  Wire.begin();
+
+  tmp116_init();
 }
 
 void loop()
 {
+  double temp = TMP116_ReadTempSensor();
+
+  Serial.println(temp);
+  
   if(digitalRead(AS3935_INT) == HIGH){
     AS3935_intVal = lightning.readInterruptReg();
     if(AS3935_intVal == AS3935_NOISE_INT){


  lightning.setIndoorOutdoor(AS3935_OUTDOOR); 
}

      Serial.println("km away!"); 
    }
  }

  delay(5000); // wait 5 seconds for the next I2C scan
}

void thunder_init()
