hi i m preethi,
the error that i m getting is
sketch_nov23a.ino: In function 'void loop()':
sketch_nov23a:21: error: 'readvoltage' was not declared in this scope
sketch_nov23a:25: error: 'readDieTempC' was not declared in this scope
int TMP006_CFG_8SAMPLE= 8;
uint8_t sensor1 = 0x40; // I2C address of TMP006, can be 0x40-0x47
uint16_t samples = TMP006_CFG_8SAMPLE; // # of samples per reading, can be 1/2/4/8/16
gpreethi:
sketch_nov23a.ino: In function 'void loop()':
sketch_nov23a:21: error: 'readvoltage' was not declared in this scope
sketch_nov23a:25: error: 'readDieTempC' was not declared in this scope
I don't know which version of TMP006 you are using, but in the few I have looked at, readvoltage() is not one of the available functions. However, readDieTempC() is defined in the Adafruit library, so that leads me to believe that you don't have the library properly installed.
The library needs to be in the Arduino\libraries folder, and it has to be in a subdirectory with the same name as the .h and .cpp files.
I have done an IR sensor sketch for a Melexis IR sensor, but didn't use a library for it.