We will be closed on November 25, 2021 and November 26, 2021 in observance of the Thanksgiving holiday. We will resume normal operations on November 29, 2021. Wishing you a safe and happy holiday from all your friends at SparkFun!


Receive a free SparkFun USB Thumb Drive with every order this weekend. Details.

Member #324223

Member Since: May 13, 2012

Country: United States

  • Yes, a new board for these would be good. :)
    Also, do you know anything about a different command set for this module - it appears the ATD1, ATD2 etc does not work ? Thanks, Rick

  • I'm using the following code and it reads 31.86 F and -0.06 C It's nearly 75 F in here. And it appears to be stuck on this numbers? Any ideas ? Thanks in advance, Rick

    //Arduino 1.0+ Only //Arduino 1.0+ Only

    ////////////////////////////////////////////////////////////////// //©2011 bildr //Released under the MIT License - Please reuse change and share //Simple code for the TMP102, simply prints temperature via serial //////////////////////////////////////////////////////////////////


    int tmp102Address = 0x48;

    void setup(){ Serial.begin(9600); Wire.begin(); }

    void loop(){

    float celsius = getTemperature(); Serial.print("Celsius: "); Serial.println(celsius);

    float fahrenheit = (1.8 * celsius) + 32; Serial.print("Fahrenheit: "); Serial.println(fahrenheit);

    delay(200); //just here to slow down the output. You can remove this }

    float getTemperature(){ Wire.requestFrom(tmp102Address,2);

    byte MSB = Wire.read(); byte LSB = Wire.read();

    //it's a 12bit int, using two's compliment for negative int TemperatureSum = ((MSB > 4;

    float celsius = TemperatureSum*0.0625; return celsius; }

  • Has anyone been successful in connecting this up to an arduino who is willing to share their code and schematic?

No public wish lists :(