i am doing a mlx90614 arduino project.
so my arduino mlx90614 project was working perfectly until some day ago in the serial monitor there is no temperature reading coming up. my code and everything is fine but still there is no temperature reading. so can anyone help me what to do with this problem.
this is the code i am working with
/***************************************************
This is a library example for the MLX90614 Temp Sensor
Designed specifically to work with the MLX90614 sensors in the
adafruit shop
----> Melexis Contact-less Infrared Sensor - MLX90614 3V [MLX90614ESF-BAA] : ID 1747 : $15.95 : Adafruit Industries, Unique & fun DIY electronics and kits 3V version
----> Melexis Contact-less Infrared Sensor - MLX90614 5V [MLX90614ESF-AAA] : ID 1748 : $15.95 : Adafruit Industries, Unique & fun DIY electronics and kits 5V version
These sensors use I2C to communicate, 2 pins are required to
interface
Adafruit invests time and resources providing this open source code,
please support Adafruit and open-source hardware by purchasing
products from Adafruit!
Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, all text above must be included in any redistribution
****************************************************/
#include <Wire.h>
#include <Adafruit_MLX90614.h>
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
void setup() {
Serial.begin(9600);
Serial.println("Adafruit MLX90614 test");
mlx.begin();
}
void loop() {
Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempC());
Serial.print("*C\tObject = "); Serial.print(mlx.readObjectTempC()); Serial.println("*C");
Serial.print("Ambient = "); Serial.print(mlx.readAmbientTempF());
Serial.print("*F\tObject = "); Serial.print(mlx.readObjectTempF()); Serial.println("*F");
Serial.println();
delay(500);
}