This library for Arduino allows you to use the LM35 temperature sensor.
Installing Additional Arduino Libraries
- Include library file header
#include <LM35.h>- Create an object, this object takes one parameter which corressponds to the analgo pin is connected to on the Arduino.
LM35 lm35(0);- In loop() function, call the measure function
lm35.getTemp();
// or
lm35.getTemp(CELCIUS);This function returns the temperature in celsius
If you want the temperature in Fahrenheit or Kelvin, you can add a parameter to the function.
- Temperature in Fahrenheit
lm35.getTemp(FAHRENHEIT);- Temperature in Kelvin
lm35.getTemp(KELVIN);Thank you to all our contributors!

