a library that provides a connection to a SHT21 temperature and humidity sensor Author: Graeme Coapes - Newcastle University, graeme.coapes@ncl.ac.uk Date: 29/11/12
Dependents: test_ncleee WeatherStation Temp_hum PROJ ... more
Diff: SHT21_ncleee.h
- Revision:
- 3:03bbabb7b0b0
- Parent:
- 2:1411bb5e8c0a
--- a/SHT21_ncleee.h Thu Nov 29 10:51:56 2012 +0000 +++ b/SHT21_ncleee.h Thu Dec 06 10:33:10 2012 +0000 @@ -113,6 +113,7 @@ { private: I2C *_i2c; +// Serial *_pc; int triggerTemp(); int requestTemp(); unsigned short temperature; @@ -136,9 +137,9 @@ * waiting for 100ms for the measuring to complete * before reading the temperature * - * @param returns The temperature, a value of either 1,2 or 3 corresponds to an error + * @param returns a value representing the temperature in degrees centigrade */ - int readTemp(); + float readTemp(); /** Read the humidity value from the sensor \n * @@ -146,9 +147,9 @@ * waiting for 100ms for the measuring to complete * before reading the humidity * - * @param returns The humidity, a value of either 1,2 or 3 corresponds to an error + * @param returns the percentage humidity */ - int readHumidity(); + float readHumidity(); /** * Perform a soft-reset of the sensor unit.