-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swapped values #1
Comments
Really? That is odd... I suspect it is being swapped in the sensor readout value because I tried with a few sensors but all from the same manufacture, probably same batch also. |
Have you tried other means of reading the sensor before? Because the raw value from the sensor is read from a memory buffer based on a fixed offset defined on the manufacture's specification I did not expect this to change. Anyway... we could add an optional parameter in the initialise function to swipe the values, if needed. |
this is what is logged with the example script: Temperature: 62.00C, humidity: 25.00% while if I test the sensor with this (https://github.com/adafruit/Adafruit-Raspberry-Pi-Python-Code/tree/master/Adafruit_DHT_Driver) I get: Temp = 25 *C, Hum = 62 % |
This PR fixes this issue. #5 |
I don't know if it depends on the sensor, but I use a DHT 11 and readout.temperature returns the humidity while readout.humidity returns the temperature
The text was updated successfully, but these errors were encountered: