Hi Paul or whomever can help
I am doing a project for my manager where I need to ger the Internal and External temp of the TMP421. I have it connexted to an Arduino Pro. Whenever I try to run the code below, it throws an error. I believe i have an issue uploading the TMP421 Library to the Arduino any help would be appreciated.!
Code:
#include <Wire.h>
#include <TMP421.h>
TMP421 temp = TMP421(0x4C);
void setup()
{
Serial.begin(9600);
}
void loop()
{
float intTemp = temp.getIntTemp(); // Get local temperature in Celcius degree
float extTemp = temp.getExtTemp(); // Get remote temperature in Celcius degree
Serial.print("Local Temp = ");
Serial.print(intTemp,DEC);
Serial.print(" C ");
Serial.print("Remote Temp = ");
Serial.print(extTemp,DEC);
Serial.println(" C");
float intTempF = temp.getIntTempF();// Get local temperature in Fahrenheit degree
float extTempF = temp.getExtTempF();// Get remote temperature in Fahrenheit degree
Serial.print("Local Temp = ");
Serial.print(intTempF,DEC);
Serial.print(" F ");
Serial.print("Remote Temp = ");
Serial.print(extTempF,DEC);
Serial.println(" F");
delay(1000);
}
Error:
Arduino: 1.6.7 (Windows 8.1), Board: "Arduino Pro or Pro Mini, ATmega328 (3.3V, 8 MHz)"
C:\Users\TESHANAX\Documents\Arduino\Getlocal_remote_temp\Getlocal_remote_temp.ino:4:21: fatal error: TMP421.h: No such file or directory
#include <TMP421.h>
^
compilation terminated.
exit status 1
Error compiling.
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
PLease and thank you