GroveTemp Class
- ID: grovetemp
- Name: Temperature Sensor
- Category: temp
- Manufacturer: seeed
- Connection: analog
- Kit: gsk
Basic UPM module for the Grove temperature sensor on analog. This sensor uses a thermistor to measure ambient temperature. The conversion formula has been updated to work with versions 1.1 and 1.2 of the sensor. For the older v1.0 sensor you will have to specify R0 and B values when initializing the device. The range of this sensor is -40 to 125 C and accuracy is +/- 1.5 C.
                      
Methods
GroveTemp
                      
                              - 
                                              pin
- 
                                              scale
- 
                                              r0
- 
                                              b
Grove analog temperature sensor constructor
Parameters:
- 
                                              pinNumberAnalog pin to use 
- 
                                              scaleNumberScaling factor for raw analog value from the ADC, useful for mixed 3.3V/5V boards, default 1.0 
- 
                                              r0Numberzero power resistance, this is 100K (default) for v1.1-v1.2 and 10K for v1.0 of the sensor 
- 
                                              bNumberthermistor nominal B constant, this is 4275 (default) for v1.1-v1.2 and 3975 for v1.0 of the sensor 
Returns:
raw_value
                      
                              ()
                      
                              
                                  Number
                              
                      
                      
                      
                      
                      
                      
                      
                          
                      
                          Gets the raw value from the AIO pin
Returns:
Raw value from the ADC
value
                      
                              ()
                      
                              
                                  Number
                              
                      
                      
                      
                      
                      
                      
                      
                          
                      
                          Gets the temperature in Celsius from the sensor
Returns:
Normalized temperature in Celsius