Skip to content

Instantly share code, notes, and snippets.

@jlengrand
Created July 29, 2020 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlengrand/3ff6ba9dbdbfb865ffd0eabec394f382 to your computer and use it in GitHub Desktop.
Save jlengrand/3ff6ba9dbdbfb865ffd0eabec394f382 to your computer and use it in GitHub Desktop.
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