|
1 | 1 | SHT1x Temperature / Humidity Sensor Library for Arduino |
2 | 2 | ======================================================= |
3 | | -Copyright 2009 Jonathan Oxer <jon@oxer.com.au> / <www.practicalarduino.com> |
| 3 | +Copyright 2009 Jonathan Oxer <jon@oxer.com.au> / <www.practicalarduino.com> |
4 | 4 | Copyright 2008 Maurice Ribble <ribblem@yahoo.com> / <www.glacialwanderer.com> |
5 | 5 |
|
6 | 6 | Provides a simple interface to the SHT1x series (SHT10, SHT11, SHT15) |
@@ -31,17 +31,26 @@ example we created an object called "sht1x", but it could have been |
31 | 31 | called whatever you like. A complete example program is included with |
32 | 32 | the library and can be accessed from the File->Examples->SHT1x menu. |
33 | 33 |
|
34 | | -### float sht1x.readTemperatureC() ### |
| 34 | +### readTemperatureC() ### |
| 35 | + |
| 36 | + float tempC = sht1x.readTemperatureC(); |
| 37 | + |
35 | 38 | Returns a float within the valid range of the sensor of -40 to +123.8. |
36 | 39 | A value of -40 is returned in the event of a communications error with |
37 | 40 | the module. |
38 | 41 |
|
39 | | -### float sht1x.readTemperatureF() ### |
| 42 | +### readTemperatureF() ### |
| 43 | + |
| 44 | + float tempF = sht1x.readTemperatureF(); |
| 45 | + |
40 | 46 | Returns a float within the valid range of the sensor of -40 to +254.9C. |
41 | 47 | A value of -40 is returned in the event of a communications error with |
42 | 48 | the module. |
43 | 49 |
|
44 | | -### float sht1x.readHumidity() ### |
| 50 | +### readHumidity() ### |
| 51 | + |
| 52 | + float humidity = sht1x.readHumidity(); |
| 53 | + |
45 | 54 | Returns a float within the valid range of the sensor of 0 to 100%. |
46 | 55 | A value of -4.4 is returned in the event of a communication error with |
47 | 56 | the module. |
0 commit comments