anilaras / raspberrypidht11read

DHT11 sensors read in c

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

raspberrypidht11read

DHT11 sensors read in c

Compile:

gcc -std=c99 termdht.c -o termdht -lwiringPi

Using:

pi@raspberrypi:~ $ ./termdht -all or -a
Humidity = 11.0 % Temperature = 22.0 C (71.6 F)
Humidity = 11.0 % Temperature = 22.0 C (71.6 F)

pi@raspberrypi:~ $ ./termdht -temp or -t
Temperature = 23.0 C
Temperature = 22.0 C

pi@raspberrypi:~ $ ./termdht -humidity or -h
Humidity = 10.0
Humidity = 10.0

About

DHT11 sensors read in c

License:GNU General Public License v3.0


Languages

Language:C 100.0%