Arduino Library Problems LM75

Hi,
my LM75 sensor worked finde on my Arduino Nano Every. Suddenly without changing anything on the code, I got this error message. Can someone help me?

Error message:
In file included from c:\Users\srdja\Documents\Arduino\libraries\Temperature_LM75_Derived-master\src\Temperature_LM75_Derived.h:5:0,
from c:\Users\srdja\Documents\Arduino\libraries\Temperature_LM75_Derived-master\src\Temperature_LM75_Derived.cpp:1:
C:\Users\srdja\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\libraries\Wire\src/Wire.h: In member function 'int16_t Temperature_LM75_Derived::readIntegerTemperatureRegister(uint8_t)':
C:\Users\srdja\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\libraries\Wire\src/Wire.h:63:12: note: candidate 1: size_t TwoWire::requestFrom(int, int)
size_t requestFrom(int, int);
^~~~~~~~~~~
C:\Users\srdja\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\libraries\Wire\src/Wire.h:61:12: note: candidate 2: virtual size_t TwoWire::requestFrom(uint8_t, size_t)
size_t requestFrom(uint8_t, size_t);
^~~~~~~~~~~
C:\Users\srdja\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\libraries\Wire\src/Wire.h: In member function 'uint8_t Generic_LM75_Compatible::readConfigurationRegister()':
C:\Users\srdja\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\libraries\Wire\src/Wire.h:63:12: note: candidate 1: size_t TwoWire::requestFrom(int, int)
size_t requestFrom(int, int);
^~~~~~~~~~~
C:\Users\srdja\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\libraries\Wire\src/Wire.h:61:12: note: candidate 2: virtual size_t TwoWire::requestFrom(uint8_t, size_t)
size_t requestFrom(uint8_t, size_t);
^~~~~~~~~~~
C:\Users\srdja\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\libraries\Wire\src/Wire.h: In member function 'uint16_t TI_TMP102_Compatible::readExtendedConfigurationRegister()':
C:\Users\srdja\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\libraries\Wire\src/Wire.h:63:12: note: candidate 1: size_t TwoWire::requestFrom(int, int)
size_t requestFrom(int, int);
^~~~~~~~~~~
C:\Users\srdja\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.8\libraries\Wire\src/Wire.h:61:12: note: candidate 2: virtual size_t TwoWire::requestFrom(uint8_t, size_t)
size_t requestFrom(uint8_t, size_t);
^~~~~~~~~~~
Sketch uses 7101 bytes (14%) of program storage space. Maximum is 49152 bytes.
Global variables use 507 bytes (8%) of dynamic memory, leaving 5637 bytes for local variables. Maximum is 6144 bytes.
avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description

avrdude: jtagmkII_initialize(): Cannot locate "flash" and "boot" memories in description - Search (bing.com)

I know about this warning, but I dont understand the Error above this. Because my Libraries are on the newest version

What part of "not an error" do you not understand? If you are suggesting that I know "why" the IDE gives an incorrect indication, I do not. My suspicion is that it is on a "to be investigated/fixed" list and at some point will be corrected.

These kinds of things happen from time-to-time, chill.

So the sketch compiled with no errors.

I know what you mean and I dont suggest, that anyone know what the problem is. I just ask this in the hope, that someone has maybe an idea or a tipp to solve this problem with the libraries.

Yes, before this the sensor worked fine. The output was for example "Temperature: 20 C". But now its just "Temperature: ". So the sensor dont give me a respond. I think its because of the Wire library. Its on the newest version, my Arduino software too, I also tried with an older Arduino software, same problem...

With a quick review on GitHub of the wire library bundled with the megaavr core and theTemperature_LM75_Derived library, I don't see any recent changes that would result in a failure to return a value.

All the warning messages about the different forms of the overloaded Wire.requestFrom() make sense to me, but I don't think they relate to the failure to return a value.

I would lean in the direction of a hardware problem, and focus on the sensor itself. First order of business would be to run an i2c scanner program and verify that the sensor is properly seen on the bus.

There are many different libraries for the LM75, perhaps you could try a different library and it might help you focus on either a software issue with the library you are using, or a hardware issue with the sensor.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.