Skip to content

Instantly share code, notes, and snippets.

Created Jul 29, 2020
What would you like to do?
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