/DigisparkTemper

Minimal USB temperature and humidity sensor with Digispark

Primary LanguagePythonMIT LicenseMIT

DigisparkTemper

Minimal USB temperature and humidity sensor with Digispark

DigisparkTemper

Parts

  • Digispark
  • DHT11
  • Jumper wires

Wireing

Connect 5V/GND/P02 of Dispack to DHT 11.

Digispark DHT11
5V VCC
GND GND
P2 DATA

Sketch

Open DigisparkTemper.ino in the Arduino IDE and program it in Digispark. The board must be "Digispark (Default - 16.5mhz)" and "TinyDHT" must be added to the library.

Check

$ sudo pip install pyusb
$ sudo ./temper.py
{"Temperature": 22, "Humidity": 60}

Credit