Skip to content

wilmouths/LM35

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: GPL v3 version author

LM35 Arduino library

This library for Arduino allows you to use the LM35 temperature sensor.

LM35 Documentation

Ciruit Diagram

  • Wiring
  • Pins map

Installation

Installing Additional Arduino Libraries

Usage

  • 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);

Contributors

Thank you to all our contributors!

About

Arduino library for LM35 sensor

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages