LM35 Class
- ID: lm35
- Name: Analog Temperature Sensor
- Other Names: LM35
- Category: temp
- Manufacturer: dfrobot
- Link: http://www.dfrobot.com/index.php?route=product/product&product_id=76
- Connection: analog
This sensor returns an analog voltage proportional to the temperature of the ambient environment.
It has a range of 2C to 150C.
This driver was developed using the DFRobot LM35 Linear Temperature Sensor
Item Index
Methods
Methods
LM35
-
pin
-
aref
LM35 constructor
Parameters:
-
pin
NumberAnalog pin to use
-
aref
NumberAnalog reference voltage; default is 5.0 V
Returns:
getTemperature
()
Number
Returns the temperature in degrees Celsius
Returns:
The Temperature in degrees Celsius
setScale
-
scale
Set sensor scale. This scale is applied to the return values before the offset is applied. Default is 1.0.
Parameters:
-
scale
NumberScale to apply.
setOffset
-
offset
Set sensor offset. This offset is applied to the return values before scaling. Default is 0.0.
Parameters:
-
offset
NumberOffset to apply.