Temp.begin() // Initialize I2C library and the MLX90614 Unless you want to use the default units of Celsius, also consider calling the setUnit() function to change the units to either Kelvin or Farenheit. This function optionally takes a parameter - the 7-bit address of your sensor - but if left empty it assumes the address is set to the default (0x5A). Then, usually in the setup() function, initialize the sensor by calling begin(). IRTherm temp // Create an IRTherm object called temp #include // Include IR thermometer library #include // Include Wire.h - Arduino I2C library In that same global area, you may want to define an IRTherm object to be used throughout the rest of the sketch.
To begin, include the SparkFunMLX90614 library and Wire. There are a few lines of code you'll probably stick in every MLX90614-interfacing code you'll write. Either a doctor visit is in my future, or I need to fuss with emissivity settings.