Created
July 29, 2020 10:10
-
-
Save jlengrand/3ff6ba9dbdbfb865ffd0eabec394f382 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float humidity = 0, temperature = 0; | |
int sensor = 11;int pin = 4; | |
pi_2_dht_read(sensor, pin, &humidity, &temperature); | |
printf("Temperature : %f\n", temperature); | |
printf("Humidity : %f\n", humidity); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment