Datasheet
We suggest the default, 16 samples for best accuracy. begin() will return true or false
based on whether it found the sensor, check it using an if statment like so:
Now you can read the Die temperature (the temperature of the physical sensor itself) and
Object temperature (the temperature of the stuff in front of the sensor)
The readings are floating point values, in degrees C.
Then wait 4 seconds between readings to get a new reading!
if (! tmp007.begin()) {
Serial.println("No sensor found");
while (1);
}
tmp007.readObjTempC();
tmp007.readDieTempC();
delay(4000); // 4 seconds per reading for 16 samples per reading
© Adafruit Industries https://learn.adafruit.com/adafruit-tmp007-sensor-breakout Page 15 of 17