

bool hasAlarm() function returns true when the temperature exceeds either the high or low alarm set point. Adobe PDF Library 10.0. The location of the Wire library in use depends on which board you have selected and whether that boards hardware package was installed via Boards Manager.The acceptable temperature range is -55 to 125☌. setHighAlarmTemp() and setLowAlarmTemp() functions configure a device’s internal high and low temperature alarms in degrees Celsius.bool getWaitForConversion() function returns the value of the waitForConversion flag, which is useful when determining whether or not a temperature conversion is complete.setResolution() function sets the resolution of the DS18B20’s internal ADC to 9, 10, 11, or 12-bits, which correspond to 0.5☌, 0.25☌, 0.125☌, and 0.0625☌, respectively.

There are many useful functions you can use with the DallasTemperature object. Other useful functions in the DallasTemperature.h library To read more about Arduino and SPI, you can visit the Arduino & Serial Peripheral Interface (SPI) guide. This library is bundled with every Arduino platform (avr, megaavr, mbed, samd, sam, arc32), so you do not need to install the library separately. getTempCByIndex( 0) * 9.0) / 5.0 + 32.0) This library allows you to communicate with SPI devices, with the Arduino as the controller device. print(( char) 176) //shows degrees character
