Be careful the type of sensor:
// Example testing sketch for various DHT humidity/temperature sensors
// Written by ladyada, public domain
#include "DHT.h"
#define DHTPIN A0 // what pin we're connected to
// Uncomment whatever type you're using!
//#define DHTTYPE DHT11 // DHT 11
#define DHTTYPE DHT22 // DHT 22 (AM2302)
//#define DHTTYPE DHT21 // DHT 21 (AM2301)
Try this code first, may it can solve your problem.
Bty, the pins of digital 7 and digital 8 are both pointed on the stalker v3 from ATmega328.
Jacket
Statistics : Posted by byronjbignell • on Sat Jan 03, 2015 5:33 pm • Replies 8 • Views 372