Test basic temperature and humidity readings with the DHT11 sensor.
The DHT11 sensor is a very cheap and common sensor that provides readings of:
- relative humidity: 20-80% ±5%
- temperature: 0-50°C ±2°C
The DHT11 uses a single-wire two-way communications protocol.
For a first test, I’m using a simple DHT11 library from the arduino playground. Adafruit have support for the DHT11 within their sensor framework; I’ll try that another time.
The Basic.ino sketch simply outputs current readings to the console: