Hi there
myself Chirayu
and i am a 8th grade student
Tomorrow i have submit the project of thermometer.
for that i have used mlx90614 sensor and arduino uno.
And will show the readings on the serial monitor and
the problem occurs that when i open the serial monitor it show nothing but when i disconnect the sda wire it starts but it doesn’t print the temperature instead writes " nan "
here's the circuit :
and this is the code
#include <Wire.h>
#include <Servo.h>
//#include <AFMotor.h>
//#include <NewPing.h>
#include <Adafruit_MLX90614.h>
Servo servo;
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
void setup() {
Serial.begin(9600);
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");
}
and here what serial monitor shows
so can anyone help me remove this nan and get the temperature
thanks